Commit 31161b7c authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed bug by Polyakov

parent 24aea5cc
......@@ -221,7 +221,7 @@ void PainterModule::runSetBrush(const Color& cs)
QColor c(cs.r, cs.g, cs.b, cs.a);
brush.setColor(c);
brush.setStyle(style);
transparent = false;
transparent = 0 == cs.a;
}
......@@ -368,10 +368,7 @@ void PainterModule::runDensity(const int value)
brush.setStyle(Qt::SolidPattern);
}
style = brush.style();
if (transparent)
brush.setStyle(Qt::NoBrush);
else
brush.setStyle(style);
brush.setStyle(style);
}
......
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