[sword-svn] r200 - trunk/src/SwordReader_GUI

dtrotzjr at crosswire.org dtrotzjr at crosswire.org
Fri Jan 30 20:04:32 MST 2009


Author: dtrotzjr
Date: 2009-01-30 20:04:32 -0700 (Fri, 30 Jan 2009)
New Revision: 200

Modified:
   trunk/src/SwordReader_GUI/SRTextView.cpp
Log:
Fixed minor display issue.

Modified: trunk/src/SwordReader_GUI/SRTextView.cpp
===================================================================
--- trunk/src/SwordReader_GUI/SRTextView.cpp	2009-01-31 01:50:25 UTC (rev 199)
+++ trunk/src/SwordReader_GUI/SRTextView.cpp	2009-01-31 03:04:32 UTC (rev 200)
@@ -482,6 +482,8 @@
     DWORDLONG   dwlFontColor;
     DWORDLONG   dwlFontHeight;
 
+    INT prevLeft = 0;
+
     if(m_dwBuffEnd == 0)
         return;
 
@@ -523,6 +525,7 @@
             break;
         }
         rectDims.left = m_nLineX;
+        rectDims.right = m_nLineX;
 
         // Font...
         SRFontTagItem *tag = m_rsState.m_lpftFontTagHead;
@@ -546,6 +549,7 @@
         SetFont(hdc, dwlFontState);
 
         rectDims.top = m_nLineY;
+        rectDims.bottom = m_nLineY;
         // Set the properties for this word.
         thisWord.m_rect             = rectDims;
         thisWord.m_dwlfFontState    = dwlFontState;
@@ -592,6 +596,8 @@
             m_nLineY += nLineH;
         }
 
+        prevLeft = thisWord.m_rect.left;
+
         // Store the line to be rendered later.
         m_BTLines.AddWordToLine(m_dwLineNum, thisWord);
 




More information about the sword-cvs mailing list