Huw Davies : riched20: Use the get_text helper in a few more places.

Alexandre Julliard julliard at winehq.org
Thu Jan 31 12:11:42 CST 2013


Module: wine
Branch: master
Commit: f24ba125f68eb66866c59599528f890d5e790997
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f24ba125f68eb66866c59599528f890d5e790997

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Jan 31 13:47:59 2013 +0000

riched20: Use the get_text helper in a few more places.

---

 dlls/riched20/run.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c
index ccee185..faef106 100644
--- a/dlls/riched20/run.c
+++ b/dlls/riched20/run.c
@@ -414,7 +414,6 @@ static BOOL run_is_entirely_ws( const ME_Run *run )
  */
 void ME_UpdateRunFlags(ME_TextEditor *editor, ME_Run *run)
 {
-  ME_String *strText = run->strText;
   assert(run->nCharOfs >= 0);
 
   if (RUN_IS_HIDDEN(run) || run->nFlags & MERF_TABLESTART)
@@ -435,12 +434,12 @@ void ME_UpdateRunFlags(ME_TextEditor *editor, ME_Run *run)
     {
       run->nFlags &= ~MERF_WHITESPACE;
 
-      if (ME_IsWSpace(strText->szData[0]))
+      if (ME_IsWSpace( *get_text( run, 0 ) ))
         run->nFlags |= MERF_STARTWHITE;
       else
         run->nFlags &= ~MERF_STARTWHITE;
 
-      if (ME_IsWSpace(strText->szData[strText->nLen - 1]))
+      if (ME_IsWSpace( *get_text( run, run->strText->nLen - 1 ) ))
         run->nFlags |= MERF_ENDWHITE;
       else
         run->nFlags &= ~MERF_ENDWHITE;




More information about the wine-cvs mailing list