summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 42b5055b0e5a..f4de034d7877 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -161,10 +161,10 @@ void CustomAnimationPane::initialize()
mpLBAnimation->SetSelectHdl(LINK(this, CustomAnimationPane, AnimationSelectHdl));
get(mpCustomAnimationList, "custom_animation_list");
mpCustomAnimationList->setController( dynamic_cast<ICustomAnimationListController*> ( this ) );
- mpCustomAnimationList->set_width_request(mpCustomAnimationList->approximate_char_width() * 16);
+ mpCustomAnimationList->set_width_request(mpCustomAnimationList->approximate_digit_width() * 15);
mpCustomAnimationList->set_height_request(mpCustomAnimationList->GetTextHeight() * 8);
- mpLBAnimation->set_width_request(mpLBAnimation->approximate_char_width() * 16);
+ mpLBAnimation->set_width_request(mpLBAnimation->approximate_digit_width() * 15);
mpLBAnimation->set_height_request(mpLBAnimation->GetTextHeight() * 8);
get(mpPBMoveUp, "move_up");