| commit | 8eb880a04d17c888c2c986426e935e02ae309e7a | [log] |
|---|---|---|
| author | Stephan Bergmann <sbergman@redhat.com> | Thu Jan 08 11:55:20 2015 +0100 |
| committer | Stephan Bergmann <sbergman@redhat.com> | Thu Jan 08 12:04:15 2015 +0100 |
| tree | 44b8f0a4da77e4db33eb636aed0d2d12d80fdd55 | |
| 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
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index 0054afc..75f8846 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();