Kaydet (Commit) 8eb880a0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 51d004b1
...@@ -429,7 +429,7 @@ bool SvxOle2Shape::createObject( const SvGlobalName &aClassName ) ...@@ -429,7 +429,7 @@ bool SvxOle2Shape::createObject( const SvGlobalName &aClassName )
{} {}
pOle2Obj->SetLogicRect( aRect ); pOle2Obj->SetLogicRect( aRect );
} }
else else if (!aRect.IsEmpty()) //HACK: can aRect legally be empty?
{ {
awt::Size aSz; awt::Size aSz;
Size aSize = aRect.GetSize(); Size aSize = aRect.GetSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment