summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-17 09:45:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-17 13:35:43 +0100
commit253f4ad388f3687140c2c5a03f895b326593d728 (patch)
treea59c8c79eba6255832d83728f1da348e743c8c63 /starmath
parent7a736cd3b7d3bc504dfc2ebea0cb55101d572610 (diff)
make approximate_char_width private and use approximate_digit_width
Change-Id: I063cb5b9823d374014fd2c8129eba53384b96870 Reviewed-on: https://gerrit.libreoffice.org/85273 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index bb12c5563d70..54e6122c8873 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -923,7 +923,7 @@ void SmViewShell::SetZoomFactor( const Fraction &rX, const Fraction &rY )
Size SmViewShell::GetTextLineSize(OutputDevice const & rDevice, const OUString& rLine)
{
Size aSize(rDevice.GetTextWidth(rLine), rDevice.GetTextHeight());
- const long nTabPos = rLine.isEmpty() ? 0 : rDevice.approximate_char_width() * 8;
+ const long nTabPos = rLine.isEmpty() ? 0 : rDevice.approximate_digit_width() * 8;
if (nTabPos)
{
@@ -1005,7 +1005,7 @@ Size SmViewShell::GetTextSize(OutputDevice const & rDevice, const OUString& rTex
void SmViewShell::DrawTextLine(OutputDevice& rDevice, const Point& rPosition, const OUString& rLine)
{
Point aPoint(rPosition);
- const long nTabPos = rLine.isEmpty() ? 0 : rDevice.approximate_char_width() * 8;
+ const long nTabPos = rLine.isEmpty() ? 0 : rDevice.approximate_digit_width() * 8;
if (nTabPos)
{