[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/rendering
From:       George Staikos <staikos () kde ! org>
Date:       2003-10-01 0:47:06
[Download RAW message or body]

CVS commit by staikos: 

initialise your variables
(valgrind found this)

CCMAIL: l.savernik@aon.at


  M +2 -2      render_text.cpp   1.220


--- kdelibs/khtml/rendering/render_text.cpp  #1.219:1.220
@@ -849,5 +849,5 @@ void RenderText::paintObject( QPainter *
         // Now calculate startPos and endPos, for painting selection.
         // We paint selection while endPos > 0
-        int endPos, startPos;
+        int endPos = 0, startPos = 0;
         if (!isPrinting && (selectionState() != SelectionNone)) {
             if (selectionState() == SelectionInside) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic