Fixed multiple messageBox problem
[apps/osp/Gallery.git] / 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);