Merge "(TextInput) Allow whitespace to be considered a word when using cut and paste...
authorPaul Wisbey <p.wisbey@samsung.com>
Thu, 18 Sep 2014 15:59:11 +0000 (08:59 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 18 Sep 2014 15:59:11 +0000 (08:59 -0700)
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;
 }