[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12760] trunk/blender/source/blender/src/ drawtext.c: Patch [#7849] Fix for bug #7140 Scrollbar not stopping ok on the bottom of the text editor window
Martin Poirier
theeth at yahoo.com
Sun Dec 2 18:51:49 CET 2007
Revision: 12760
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12760
Author: theeth
Date: 2007-12-02 18:51:49 +0100 (Sun, 02 Dec 2007)
Log Message:
-----------
Patch [#7849] Fix for bug #7140 Scrollbar not stopping ok on the bottom of the text editor window
By Jetze van Beijma
It doesn't quite fix the bug (some slight quirks left), but it's much better already, so I'm committing it.
Modified Paths:
--------------
trunk/blender/source/blender/src/drawtext.c
Modified: trunk/blender/source/blender/src/drawtext.c
===================================================================
--- trunk/blender/source/blender/src/drawtext.c 2007-12-02 15:54:54 UTC (rev 12759)
+++ trunk/blender/source/blender/src/drawtext.c 2007-12-02 17:51:49 UTC (rev 12760)
@@ -730,7 +730,7 @@
lbarstart= st->top;
lbarh= st->viewlines;
- ltexth= txt_get_span(st->text->lines.first, st->text->lines.last)+1;
+ ltexth= txt_get_span(st->text->lines.first, st->text->lines.last) st->viewlines / 2 + 2;
barheight= (lbarh*(curarea->winy-4))/ltexth;
if (barheight<20) barheight=20;
More information about the Bf-blender-cvs
mailing list