summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/DeckLayouter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/DeckLayouter.cxx')
-rw-r--r--sfx2/source/sidebar/DeckLayouter.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index 120906307e9a..a27f6f7847ca 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -377,6 +377,17 @@ void GetRequestedSizes (
if (xPanel.is())
{
aLayoutSize = xPanel->getHeightForWidth(rContentBox.GetWidth());
+ if (!(0 <= aLayoutSize.Minimum && aLayoutSize.Minimum <= aLayoutSize.Preferred
+ && aLayoutSize.Preferred <= aLayoutSize.Maximum))
+ {
+ SAL_WARN("sfx.sidebar", "Please follow LayoutSize constraints: 0 ≤ "
+ "Minimum ≤ Preferred ≤ Maximum."
+ " Currently: Minimum: "
+ << aLayoutSize.Minimum
+ << " Preferred: " << aLayoutSize.Preferred
+ << " Maximum: " << aLayoutSize.Maximum);
+ }
+
sal_Int32 nWidth = xPanel->getMinimalWidth();
uno::Reference<frame::XDesktop2> xDesktop