diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-08 11:55:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-08 12:04:15 +0100 |
commit | 8eb880a04d17c888c2c986426e935e02ae309e7a (patch) | |
tree | 44b8f0a4da77e4db33eb636aed0d2d12d80fdd55 /svx | |
parent | 51d004b1d761193aa092a7532748935970e82ec8 (diff) |
HACK to avoid empty page size/div by 0 in chart2 LegendWrapper::setPosition
see thread starting at
<http://lists.freedesktop.org/archives/libreoffice/2015-January/065706.html>
"CppunitTest_sw_ooxmlsdrexport: division by zero in
chart2/source/controller/chartapiwrapper/LegendWrapper.cxx"
Change-Id: If8fde31dff04d9a223687838df6dd9fe4e57ee8b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshap4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index 0054afcc3189..75f88469a119 100644 --- a/svx/source/unodraw/unoshap4.cxx +++ b/svx/source/unodraw/unoshap4.cxx @@ -429,7 +429,7 @@ bool SvxOle2Shape::createObject( const SvGlobalName &aClassName ) {} pOle2Obj->SetLogicRect( aRect ); } - else + else if (!aRect.IsEmpty()) //HACK: can aRect legally be empty? { awt::Size aSz; Size aSize = aRect.GetSize(); |