diff options
Diffstat (limited to 'sw/source/ui/envelp')
-rw-r--r-- | sw/source/ui/envelp/labfmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx index 5bf8ee7caf76..89f4d63f615e 100644 --- a/sw/source/ui/envelp/labfmt.cxx +++ b/sw/source/ui/envelp/labfmt.cxx @@ -181,7 +181,7 @@ void SwLabPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectan // Scale factor const float fx = float(lOutWPix23) / std::max(1L, lDispW); const float fy = float(lOutHPix23) / std::max(1L, lDispH); - const float f = fx < fy ? fx : fy; + const float f = std::min(fx, fy); // zero point const long lOutlineW = ROUND(f * lDispW); |