Commit 69a1c484 authored by Yue Liu's avatar Yue Liu
Browse files

paint margin on top of the grids, BUG: 297417

parent 3ddb02f4
......@@ -62,9 +62,6 @@ void KoPAViewModeNormal::paint(KoPACanvasBase* canvas, QPainter& painter, const
QRectF updateRect = converter->viewToDocument( m_canvas->widgetToView( clipRect ) );
m_view->activePage()->paintBackground( painter, *converter );
// paint the page margins
paintMargins( painter, *converter );
const KoPageLayout &layout = activePageLayout();
QSizeF pageSize(layout.width, layout.height);
QRectF gridRect = QRectF(QPointF(), pageSize).intersected(updateRect);
......@@ -73,6 +70,9 @@ void KoPAViewModeNormal::paint(KoPACanvasBase* canvas, QPainter& painter, const
m_canvas->document()->gridData().paintGrid(painter, *converter, gridRect );
}
// paint the page margins
paintMargins( painter, *converter );
painter.setRenderHint( QPainter::Antialiasing );
// paint the shapes
......
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