From kwrite-devel Thu Apr 07 21:48:21 2005 From: Dominik Haumann Date: Thu, 07 Apr 2005 21:48:21 +0000 To: kwrite-devel Subject: Re: kdelibs/kate/part Message-Id: <200504072348.21155.dhdev () gmx ! de> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=111291065608911 On Thursday 07 April 2005 21:59, Christoph Cullmann wrote: > CVS commit by cullmann: > > ha, there we go, wrong int -><- uint conversion caused all that sluggish > scrolling at the first few lines ;) yeah, please test + backport, perhaps > that are too much (int), but it at least shows the signedness > CCMAIL:kwrite-devel@kde.org > > > M +5 -1 kateviewinternal.cpp 1.347 > > > --- kdelibs/kate/part/kateviewinternal.cpp #1.346:1.347 > @@ -426,5 +426,9 @@ void KateViewInternal::scrollPos(KateTex > // only calculate if this is really used and usefull, could be wrong > here, please recheck // for larger scrolls this makes 2-4 seconds > difference on my xeon with dyn. word wrap on - bool > viewLinesScrolledUsable = !force && ((uint)c.line() >= > startLine()-linesDisplayed()-1) && ((uint)c.line() <= > endLine()+linesDisplayed()+1); + // try to get it really working ;) > + bool viewLinesScrolledUsable = !force > + && (c.line() >= > (int)startLine()-(int)linesDisplayed()-1) + > && (c.line() <= (int)endLine()+(int)linesDisplayed()+1); + > if (viewLinesScrolledUsable) > viewLinesScrolled = displayViewLine(c); hm, I don't know what bug I am supposed to see, so I can neither test nor backport. -- Dominik _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel