Commit 2be76ca5 authored by Inge Wallin's avatar Inge Wallin
Browse files

Fix bug 265868: mw07:Embedded word document is displaying at the top of the page.

* Don't center the EMF in the available space, but instead paint it in
  the upper left corner.

BUG: 265868
parent 35a0199d
......@@ -147,6 +147,7 @@ void OutputPainterStrategy::init( const Header *header )
// Calculate translation if we should center the EMF in the
// area and keep the aspect ratio.
#if 0 // Should apparently be upper left. See bug 265868
if ( m_keepAspectRatio ) {
m_painter->translate((m_outputSize.width() / scaleX - headerBoundsSize.width()) / 2,
(m_outputSize.height() / scaleY - headerBoundsSize.height()) / 2);
......@@ -154,6 +155,7 @@ void OutputPainterStrategy::init( const Header *header )
printPainterTransform("after translation for keeping center in the shape");
#endif
}
#endif
m_outputTransform = m_painter->transform();
m_worldTransform = QTransform();
......
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