Commit 425c61f6 authored by Roberto Raggi's avatar Roberto Raggi

Fixed drop shadow

Done with: mae
parent 5ec1c36c
......@@ -332,7 +332,9 @@ void TextEditorOverlay::paintSelection(QPainter *painter,
painter->save();
QPainterPath shadow = path;
shadow.translate(m_dropShadowWidth, m_dropShadowWidth);
painter->setClipPath(shadow.intersected(path));
QPainterPath clip;
clip.addRect(m_editor->viewport()->rect());
painter->setClipPath(clip - path);
painter->fillPath(shadow, QColor(0, 0, 0, 100));
painter->restore();
}
......
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