(TextInput) Allow whitespace to be considered a word when using cut and paste 35/27635/1
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 11 Sep 2014 16:05:19 +0000 (17:05 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Tue, 16 Sep 2014 17:52:04 +0000 (18:52 +0100)
Change-Id: If2357e20d46c87ba3ce27ade944b7a9b973b4802
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
base/dali-toolkit/internal/builder/builder-impl.cpp
base/dali-toolkit/internal/controls/text-view/text-processor.cpp

index f6af80e..ee8f8fc 100644 (file)
@@ -1010,7 +1010,6 @@ bool Builder::ApplyStyle( const std::string& styleName, Handle& handle, const Re
   }
   else
   {
-    DALI_SCRIPT_WARNING("No styles section to create style '%s'\n", styleName.c_str());
     return false;
   }
 }
index f374479..1f32dd9 100644 (file)
@@ -327,6 +327,15 @@ void FindNearestWord( const MarkupProcessor::StyledTextArray& text, size_t offse
     j++;
   }
 
+  // If both markers at same position and is whitespace then word is a whitespace word
+  if ( i == j )
+  {
+    while(j < size && IsWhiteSpace(text, j))
+    {
+      j++;
+    }
+  }
+
   start = i;
   end = j;
 }