diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx index ccb775f77677..82dcff7817be 100644 --- a/svx/source/dialog/swframeexample.cxx +++ b/svx/source/dialog/swframeexample.cxx @@ -104,9 +104,15 @@ void SwFrameExample::InitAllRects_Impl(vcl::RenderContext& rRenderContext) aPage.SetSize(GetOutputSizePixel()); sal_uInt32 nOutWPix = aPage.GetWidth(); + if (!nOutWPix) + { + nOutWPix = 1; + } sal_uInt32 nOutHPix = aPage.GetHeight(); - - assert(nOutWPix > 0 && nOutHPix > 0); + if (!nOutHPix) + { + nOutHPix = 1; + } // PrintArea sal_uInt32 nLBorder;