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

Revert "bnc#886540: Let's not push the available area down when no titles are there."

This reverts commit b398ed8e:  "Aug 06 10:11:53
<sberg> moggi, b398ed8e broke
CppunitTest_chart2_xshape, very many attributes in
chart2/qa/extras/xshape/data/reference/fdo75075.xml have wrong values now;
what's the best way to fix? manually fixing fdo75075.xml (assuming the new
values are even correct?) looks /very/ tedious.  better revert the commit for
now?"
üst 3c01c88a
......@@ -2301,7 +2301,37 @@ boost::shared_ptr<VTitle> lcl_createTitle( TitleHelper::eTitleType eType
break;
}
}
else
{
// #i109336# Improve auto positioning in chart
switch ( eAlignment )
{
case ALIGN_TOP:
{
rRemainingSpace.Y += nYDistance;
rRemainingSpace.Height -= nYDistance;
}
break;
case ALIGN_BOTTOM:
{
rRemainingSpace.Height -= nYDistance;
}
break;
case ALIGN_LEFT:
{
rRemainingSpace.X += nXDistance;
rRemainingSpace.Width -= nXDistance;
}
break;
case ALIGN_RIGHT:
{
rRemainingSpace.Width -= nXDistance;
}
break;
default:
break;
}
}
return apVTitle;
}
......
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