Index: scribus/ui/hruler.cpp =================================================================== --- scribus/ui/hruler.cpp (revision 27829) +++ scribus/ui/hruler.cpp (working copy) @@ -753,7 +753,6 @@ cr.setPoints(3, m_whereToDraw, 5, m_whereToDraw + 2, 0, m_whereToDraw - 2, 0); p.resetTransform(); - p.translate(-m_view->contentsX(), 0); p.setPen(markerColor); p.drawLine(m_whereToDraw, 0, m_whereToDraw, bottomline); p.setRenderHints(QPainter::Antialiasing, true); @@ -939,13 +938,12 @@ void Hruler::draw(int where) { - // erase old marker - int currentCoor = where - m_view->contentsX(); - m_whereToDraw = where; - m_drawMark = true; - repaint(m_oldMark - 4, 0, 8, bottomline); - // m_drawMark = false; + const int currentCoor = where - m_view->contentsX(); + const int oldCoor = m_oldMark; + m_whereToDraw = currentCoor; m_oldMark = currentCoor; + m_drawMark = true; + update(QRect(oldCoor - 4, 0, 8, bottomline).united(QRect(currentCoor - 4, 0, 8, bottomline))); } void Hruler::setItem(PageItem * item) Index: scribus/ui/vruler.cpp =================================================================== --- scribus/ui/vruler.cpp (revision 27829) +++ scribus/ui/vruler.cpp (working copy) @@ -124,8 +124,6 @@ QPolygon cr; cr.setPoints(3, 5, m_whereToDraw, 0, m_whereToDraw + 2, 0, m_whereToDraw - 2); - // p.resetTransform(); - p.translate(0, -m_view->contentsY()); p.setPen(markerColor); p.drawLine(0, m_whereToDraw, bottomline, m_whereToDraw); p.setRenderHints(QPainter::Antialiasing, true); @@ -297,13 +295,12 @@ void Vruler::draw(int where) { - // erase old marker - int currentCoor = where - m_view->contentsY(); - m_whereToDraw = where; - m_drawMark = true; - repaint(0, m_oldMark - 4, bottomline, 8); -// m_drawMark = false; + const int currentCoor = where - m_view->contentsY(); + const int oldCoor = m_oldMark; + m_whereToDraw = currentCoor; m_oldMark = currentCoor; + m_drawMark = true; + update(QRect(0, oldCoor - 4, bottomline, 8).united(QRect(0, currentCoor - 4, bottomline, 8))); } void Vruler::unitChange()