summaryrefslogtreecommitdiff
path: root/basctl
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 /basctl
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 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index 5ac30b14432b..868379bd955c 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -834,7 +834,7 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage )
// nLinepPage is not correct if there's a line break
sal_Int32 nLinespPage = aPaperSz.Height()/nLineHeight;
- long nXTextWidth = pPrinter->approximate_char_width();
+ long nXTextWidth = pPrinter->approximate_digit_width();
sal_Int32 nCharspLine = aPaperSz.Width() / std::max<long>(nXTextWidth, 1);
const sal_uInt32 nParas = GetEditEngine()->GetParagraphCount();