loplugin:fpcomparison in sdext/
Change-Id: If2ae6c3399ef3aceffc2080fcd790e91dc594d9b Reviewed-on: https://gerrit.libreoffice.org/21864 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
committed by
Noel Grandin
parent
dc889a9a30
commit
8ffd2c8dd0
@@ -54,7 +54,7 @@ void pdfi::FillDashStyleProps(PropertyMap& props, const std::vector<double>& das
|
|||||||
|
|
||||||
for (size_t i = 0; i < pairCount; i++)
|
for (size_t i = 0; i < pairCount; i++)
|
||||||
{
|
{
|
||||||
if (dotLengths[dotStage] != dashArray[i * 2])
|
if (!rtl::math::approxEqual(dotLengths[dotStage], dashArray[i * 2]))
|
||||||
{
|
{
|
||||||
dotStage++;
|
dotStage++;
|
||||||
if (dotStage == 3)
|
if (dotStage == 3)
|
||||||
|
@@ -663,12 +663,11 @@ bool isSpaces(TextElement* pTextElem)
|
|||||||
|
|
||||||
bool notTransformed(const GraphicsContext& GC)
|
bool notTransformed(const GraphicsContext& GC)
|
||||||
{
|
{
|
||||||
return (
|
return
|
||||||
GC.Transformation.get(0,0) == 100.00 &&
|
rtl::math::approxEqual(GC.Transformation.get(0,0), 100.00) &&
|
||||||
GC.Transformation.get(1,0) == 0.00 &&
|
GC.Transformation.get(1,0) == 0.00 &&
|
||||||
GC.Transformation.get(0,1) == 0.00 &&
|
GC.Transformation.get(0,1) == 0.00 &&
|
||||||
GC.Transformation.get(1,1) == -100.00
|
rtl::math::approxEqual(GC.Transformation.get(1,1), -100.00);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
|
void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
|
||||||
|
Reference in New Issue
Block a user