summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-15 20:55:03 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-16 09:53:19 +0200
commit281596e7324fbf1f5e16245382cfddae2df18a8d (patch)
tree91517b78984aba717d20e09d2fca04476880e10e /svx/source/dialog
parent30be1d807d4e1fbec73d92d7740490b69e0bb751 (diff)
cid#1606823 silence Overflowed constant
Change-Id: I0ca0556b75e258ba89271c3cb428b267976bfb09 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173423 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/swframeexample.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx
index 29475f6f39c6..8beb189a40fe 100644
--- a/svx/source/dialog/swframeexample.cxx
+++ b/svx/source/dialog/swframeexample.cxx
@@ -98,6 +98,8 @@ void SwFrameExample::InitAllRects_Impl(vcl::RenderContext& rRenderContext)
sal_uInt32 nOutWPix = aPage.GetWidth();
sal_uInt32 nOutHPix = aPage.GetHeight();
+ assert(nOutWPix > 0 && nOutHPix > 0);
+
// PrintArea
sal_uInt32 nLBorder;
sal_uInt32 nRBorder;