Fixed multiple messageBox problem
authorHimanshu <himanshu.t@samsung.com>
Wed, 19 Jun 2013 04:18:21 +0000 (09:48 +0530)
committerHimanshu <himanshu.t@samsung.com>
Wed, 19 Jun 2013 04:18:21 +0000 (09:48 +0530)
Change-Id: I5cad8ef2fc993c9312f65d514a310f04b3742039
Signed-off-by: Himanshu <himanshu.t@samsung.com>
src/GlAlbumNameEditorForm.cpp

index 1b59781..a2e945e 100644 (file)
@@ -240,7 +240,11 @@ AlbumNameEditorForm::OnTextValueChanged(const Control& source)
                                }
                                AppLogDebug("result of byte count is %s",GetErrorMessage(r));
                                checkByteCount = checkByteCount + byteCount;
-                               lengthOfFinalString++;
+
+                               if( checkByteCount < tempLength)
+                               {
+                                       lengthOfFinalString++;
+                               }
                        }
 
                        r = __pNameEditField->GetText().SubString(0, lengthOfFinalString, currentInput);