summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-02 14:12:20 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2021-04-06 12:14:01 +0200
commit8782c6d577a195b97f00c13133ba367b830ac491 (patch)
treee5ee7f51f000f5b7f437985dfb4a2c70701dff32 /sfx2/source
parentcc7cdddac7b8e2317d300120cc5b359394a9d310 (diff)
make Analog Clock sidebar extension demo work
from... https://wiki.openoffice.org/wiki/Sidebar_for_Developers#Example:_Analog_Clock_Extension http://people.apache.org/~af/clock/AnalogClock.oxt presumably compatibility was broken at: commit e66be44b69ee2a1b99bda32af93ea453c669b319 Date: Sun Jun 2 04:46:58 2013 +0200 sidebar: Restrict the minimal width of the sidebar. Change-Id: Id1531d4531a3e9bceb3d37a9e74a7a06497098e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111868 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113525 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/sidebar/DeckLayouter.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index c4c9cd4b9a81..c9d59136c379 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -433,7 +433,16 @@ void GetRequestedSizes (
<< " Maximum: " << rItem.maLayoutSize.Maximum);
}
- sal_Int32 nWidth = xPanel->getMinimalWidth();
+ sal_Int32 nWidth = rMinimalWidth;
+ try
+ {
+ // The demo sidebar extension "Analog Clock" fails with
+ // java.lang.AbstractMethodError here
+ nWidth = xPanel->getMinimalWidth();
+ }
+ catch (...)
+ {
+ }
uno::Reference<frame::XDesktop2> xDesktop
= frame::Desktop::create(comphelper::getProcessComponentContext());