Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

2 new defect(s) introduced to LibreOffice found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1666413:       Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
/sc/source/ui/cctrl/dpcontrol.cxx: 234           in 
ScDPFieldButton::drawPopupButton()()


_____________________________________________________________________________________________
*** CID 1666413:         Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
/sc/source/ui/cctrl/dpcontrol.cxx: 234             in 
ScDPFieldButton::drawPopupButton()()
228     
229         mpOutDev->SetFillColor(aBackgroundColor);
230         mpOutDev->SetLineColor();
231         mpOutDev->DrawRect(tools::Rectangle(aPos, aSize));
232     
233         const double nVDist = aSize.Height() / 4;
>>>     CID 1666413:         Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
>>>     Dividing integer expressions "aSize.Width()" and "10L", and then 
>>> converting the integer quotient to type "double". Any remainder, or 
>>> fractional part of the quotient, is ignored.
234         const double nHDist = aSize.Width() / 10;
235         const double fZoom = static_cast<double>(maZoomY);
236     
237         aBackgroundColor = mbPopupPressed      ? 
mrStyle.GetButtonTextColor()
238                            : mbHasHiddenMember ? aDocColor
239                                                : aAccentColor;

** CID 1666412:       Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
/sc/source/ui/cctrl/dpcontrol.cxx: 233           in 
ScDPFieldButton::drawPopupButton()()


_____________________________________________________________________________________________
*** CID 1666412:         Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
/sc/source/ui/cctrl/dpcontrol.cxx: 233             in 
ScDPFieldButton::drawPopupButton()()
227                                                      : aDocColor;
228     
229         mpOutDev->SetFillColor(aBackgroundColor);
230         mpOutDev->SetLineColor();
231         mpOutDev->DrawRect(tools::Rectangle(aPos, aSize));
232     
>>>     CID 1666412:         Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
>>>     Dividing integer expressions "aSize.Height()" and "4L", and then 
>>> converting the integer quotient to type "double". Any remainder, or 
>>> fractional part of the quotient, is ignored.
233         const double nVDist = aSize.Height() / 4;
234         const double nHDist = aSize.Width() / 10;
235         const double fZoom = static_cast<double>(maZoomY);
236     
237         aBackgroundColor = mbPopupPressed      ? 
mrStyle.GetButtonTextColor()
238                            : mbHasHiddenMember ? aDocColor


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

Reply via email to