Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/tool/kis_tool_paint.cc
Show First 20 Lines • Show All 731 Lines • ▼ Show 20 Line(s) | 705 | { | |||
---|---|---|---|---|---|
732 | 732 | | |||
733 | m_outlineDocPoint = outlineDocPoint; | 733 | m_outlineDocPoint = outlineDocPoint; | ||
734 | m_currentOutline = getOutlinePath(m_outlineDocPoint, event, outlineMode); | 734 | m_currentOutline = getOutlinePath(m_outlineDocPoint, event, outlineMode); | ||
735 | 735 | | |||
736 | QRectF outlinePixelRect = m_currentOutline.boundingRect(); | 736 | QRectF outlinePixelRect = m_currentOutline.boundingRect(); | ||
737 | QRectF outlineDocRect = currentImage()->pixelToDocument(outlinePixelRect); | 737 | QRectF outlineDocRect = currentImage()->pixelToDocument(outlinePixelRect); | ||
738 | 738 | | |||
739 | // This adjusted call is needed as we paint with a 3 pixel wide brush and the pen is outside the bounds of the path | 739 | // This adjusted call is needed as we paint with a 3 pixel wide brush and the pen is outside the bounds of the path | ||
740 | // Pen uses view coordinates so we have to zoom the document value to match 2 pixel in view coordiates | 740 | // Pen uses view coordinates so we have to zoom the document value to match 2 pixel in view coordinates | ||
741 | // See BUG 275829 | 741 | // See BUG 275829 | ||
742 | qreal zoomX; | 742 | qreal zoomX; | ||
743 | qreal zoomY; | 743 | qreal zoomY; | ||
744 | canvas()->viewConverter()->zoom(&zoomX, &zoomY); | 744 | canvas()->viewConverter()->zoom(&zoomX, &zoomY); | ||
745 | qreal xoffset = 2.0/zoomX; | 745 | qreal xoffset = 2.0/zoomX; | ||
746 | qreal yoffset = 2.0/zoomY; | 746 | qreal yoffset = 2.0/zoomY; | ||
747 | 747 | | |||
748 | if (!outlineDocRect.isEmpty()) { | 748 | if (!outlineDocRect.isEmpty()) { | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |