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:08:43 +0200 |
commit | 6cbb9602e15794b4d39d2482a40c22d3fd0328f9 (patch) | |
tree | 97db950a0626a91f7555d4842adde85c13fe119a | |
parent | 6719ef77c4068c8d02eb0f690dfd3bc0c61cb58d (diff) |
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>
-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 4c4ff867503d..cf7cec804f23 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -3031,6 +3031,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); |