/sw/source/core/draw/dflyobj.cxx: 775 in SwVirtFlyDrawObj::NbcCrop(const Point &, const Fraction
&, const Fraction &)()
CID 1297232: Incorrect expression (DIVIDE_BY_ZERO)
In expression "(aGraphicSize.Width() - aCropRectangle.Left() - aCropRectangle.Right()) /
(double)aOldRect.GetWidth()", division by expression "aOldRect.GetWidth()" which may be zero
has undefined behavior.
775 double fScaleX = ( aGraphicSize.Width() - aCropRectangle.Left() -
aCropRectangle.Right() ) / (double)aOldRect.GetWidth();
CID 1297231: Incorrect expression (DIVIDE_BY_ZERO)
In expression "(aGraphicSize.Height() - aCropRectangle.Top() - aCropRectangle.Bottom()) /
(double)aOldRect.GetHeight()", division by expression "aOldRect.GetHeight()" which may be zero
has undefined behavior.
776 double fScaleY = ( aGraphicSize.Height() - aCropRectangle.Top() -
aCropRectangle.Bottom() ) / (double)aOldRect.GetHeight();
Fixed by https://gerrit.libreoffice.org/#/c/15685/
If someone can merge this into master.
Philippe
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.