diff options
Diffstat (limited to 'basegfx/source/inc/hommatrixtemplate.hxx')
-rw-r--r-- | basegfx/source/inc/hommatrixtemplate.hxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/basegfx/source/inc/hommatrixtemplate.hxx b/basegfx/source/inc/hommatrixtemplate.hxx index 44f7cd8027cf..a80df114c3e3 100644 --- a/basegfx/source/inc/hommatrixtemplate.hxx +++ b/basegfx/source/inc/hommatrixtemplate.hxx @@ -174,26 +174,26 @@ namespace basegfx::internal void testLastLine() { - if(mpLine) - { - bool bNecessary(false); + if(!mpLine) + return; - for(sal_uInt16 a(0);!bNecessary && a < RowSize; a++) - { - const double fDefault(implGetDefaultValue((RowSize - 1), a)); - const double fLineValue(mpLine->get(a)); + bool bNecessary(false); - if(!::basegfx::fTools::equal(fDefault, fLineValue)) - { - bNecessary = true; - } - } + for(sal_uInt16 a(0);!bNecessary && a < RowSize; a++) + { + const double fDefault(implGetDefaultValue((RowSize - 1), a)); + const double fLineValue(mpLine->get(a)); - if(!bNecessary) + if(!::basegfx::fTools::equal(fDefault, fLineValue)) { - mpLine.reset(); + bNecessary = true; } } + + if(!bNecessary) + { + mpLine.reset(); + } } // Left-upper decomposition |