aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext/rectanglenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'softwarecontext/rectanglenode.cpp')
-rw-r--r--softwarecontext/rectanglenode.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/softwarecontext/rectanglenode.cpp b/softwarecontext/rectanglenode.cpp
index a950b900c0..8e3548cf23 100644
--- a/softwarecontext/rectanglenode.cpp
+++ b/softwarecontext/rectanglenode.cpp
@@ -82,9 +82,6 @@ void RectangleNode::update()
void RectangleNode::paint(QPainter *painter)
{
- QPen originalPen = painter->pen();
- QBrush originalBrush = painter->brush();
-
painter->setPen(m_pen);
painter->setBrush(m_brush);
if (m_radius)
@@ -93,7 +90,4 @@ void RectangleNode::paint(QPainter *painter)
painter->fillRect(m_rect, m_color);
else
painter->drawRect(m_rect);
-
- painter->setPen(originalPen);
- painter->setBrush(originalBrush);
}