diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-09-12 21:15:35 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-09-15 15:34:15 +0200 |
commit | 9d4cbae332c3741b76cd80a4b31c6e2bed4ccb66 (patch) | |
tree | feed28e8c76231ae01aaa2770307a38875f3a844 /svtools | |
parent | 681f43274541fc4ab5e8c05739b0d74aa5f17be8 (diff) |
ruler: Also show ticks below/above numbers in "negative" area
Change-Id: I70d9f0409962be607eddac1b308d8cc44d2a7b7f
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ruler.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 3593fe92b9b7..6a356c6e45c4 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -585,12 +585,15 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nTop, long nB else aNumString = OUString::number( nTick / aImplRulerUnitTab[mnUnitIndex].nTickUnit ); - ImplVDrawText( nStart + n, nCenter, aNumString, nMin, nMax ); - ImplVDrawText( nStart - n, nCenter, aNumString, nMin, nMax ); - - ImplVDrawLine( nStart + n, nBottom, nStart + n, nBottom - 1 ); - ImplVDrawLine( nStart + n, nTop, nStart + n, nTop + 1 ); - + long nHorizontalLocation = nStart + n; + ImplVDrawText( nHorizontalLocation, nCenter, aNumString, nMin, nMax ); + ImplVDrawLine( nHorizontalLocation, nBottom, nHorizontalLocation, nBottom - 1 ); + ImplVDrawLine( nHorizontalLocation, nTop, nHorizontalLocation, nTop + 1 ); + + nHorizontalLocation = nStart - n; + ImplVDrawText( nHorizontalLocation, nCenter, aNumString, nMin, nMax ); + ImplVDrawLine( nHorizontalLocation, nBottom, nHorizontalLocation, nBottom - 1 ); + ImplVDrawLine( nHorizontalLocation, nTop, nHorizontalLocation, nTop + 1 ); } // Tick/Tick2 - Output (Strokes) else |