From 44911fb71708f71feea4c853de856a14af4fbccf Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Thu, 18 Jul 2019 00:57:15 +0200 Subject: Improvements finish pointed by Maren --- src/ui/tools/freehand-base.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/ui/tools/freehand-base.cpp') diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp index 961410c6b..52796b25e 100644 --- a/src/ui/tools/freehand-base.cpp +++ b/src/ui/tools/freehand-base.cpp @@ -890,13 +890,11 @@ static void spdc_flush_white(FreehandBase *dc, SPCurve *gc) repr->setAttribute("d", str); g_free(str); - if (SP_IS_PENCIL_CONTEXT(dc)) { - if (dc->tablet_enabled) { - if (!dc->white_item) { - dc->white_item = SP_ITEM(desktop->currentLayer()->appendChildRepr(repr)); - } - spdc_check_for_and_apply_waiting_LPE(dc, dc->white_item, c, false); + if (SP_IS_PENCIL_CONTEXT(dc) && dc->tablet_enabled) { + if (!dc->white_item) { + dc->white_item = SP_ITEM(desktop->currentLayer()->appendChildRepr(repr)); } + spdc_check_for_and_apply_waiting_LPE(dc, dc->white_item, c, false); } if (!dc->white_item) { // Attach repr -- cgit v1.2.3