From 12c814813b2f657e4044931ea7a0f4d4e2b08031 Mon Sep 17 00:00:00 2001 From: rylek Date: Wed, 24 Mar 2010 06:47:38 +0000 Subject: [PATCH] .TCtrlLib: relaxed rules for drawing Ruler steps git-svn-id: svn://ultimatepp.org/upp/trunk@2264 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/TCtrlLib/Ruler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/TCtrlLib/Ruler.cpp b/uppsrc/TCtrlLib/Ruler.cpp index 5ac0732a1..0db01fdfb 100644 --- a/uppsrc/TCtrlLib/Ruler.cpp +++ b/uppsrc/TCtrlLib/Ruler.cpp @@ -238,7 +238,7 @@ void RulerCtrl::Paint(Draw& draw) rep_count = ceil(pos2 / small_repeat) - floor(pos1 / small_repeat); } if(!small_step.IsEmpty() && rep_count > 0 - && rep_count * small_step.GetCount() * 3 <= cli2 - cli1) { + && rep_count * small_step.GetCount() <= cli2 - cli1) { int ix = BinFindIndex(small_step, pos1 - rep_delta); int ppos = (is_right ? 0 : cheight - SMALL_SIZE); for(int c = fround(rep_count); --c >= 0; ix = 0, rep_delta += small_repeat) {