diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-08-14 16:12:53 +0530 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-08-20 18:03:56 +0200 |
commit | 9b1f4aac63e0f1e5453485f8b4c36c9020bbea03 (patch) | |
tree | fa7818b3cde3679249b1abcf514c9d7213a3b1f0 /svx/source | |
parent | fix for fdo#48200.diff import regrex state for filter (diff) | |
download | core-9b1f4aac63e0f1e5453485f8b4c36c9020bbea03.tar.gz core-9b1f4aac63e0f1e5453485f8b4c36c9020bbea03.zip |
fdo#47434: Zero rect. size causing wrong line positions.
Thanks to Korrawit Pruegsanusak <detective.conan.1412@gmail.com>
for the indepth analysis and debugging.
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 1e66287d8b83..4359459954ca 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -3026,6 +3026,10 @@ void SdrObjCustomShape::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, // build and set BaseRect (use scale) Point aPoint = Point(); Size aSize(FRound(aScale.getX()), FRound(aScale.getY())); + // fdo#47434 We need a valid rectangle here + if( !aSize.Height() ) aSize.setHeight( 1 ); + if( !aSize.Width() ) aSize.setWidth( 1 ); + Rectangle aBaseRect(aPoint, aSize); SetSnapRect(aBaseRect); |