mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-14 14:33:58 +00:00
Don't show the draw pointer preview creating a selection
This commit is contained in:
@@ -163,10 +163,11 @@ void CaptureWidget::paintEvent(QPaintEvent *) {
|
||||
// If we are creating a new modification to the screenshot we just draw
|
||||
// a temporal modification without antialiasing in the pencil tool for
|
||||
// performance. When we are not drawing we just shot the modified screenshot
|
||||
if (m_mouseIsClicked && m_state != CaptureButton::TYPE_MOVESELECTION) {
|
||||
bool stateIsSelection = m_state == CaptureButton::TYPE_MOVESELECTION;
|
||||
if (m_mouseIsClicked && !stateIsSelection) {
|
||||
painter.drawPixmap(0, 0, m_screenshot->paintTemporalModification(
|
||||
m_modifications.last()));
|
||||
} else if (m_toolIsForDrawing) {
|
||||
} else if (m_toolIsForDrawing && !stateIsSelection) {
|
||||
CaptureButton::ButtonType type = CaptureButton::ButtonType::TYPE_LINE;
|
||||
if (m_state == CaptureButton::ButtonType::TYPE_MARKER) {
|
||||
type = CaptureButton::ButtonType::TYPE_MARKER;
|
||||
|
||||
Reference in New Issue
Block a user