From e783c971672ff672b984f63046899f59797f1afc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Mon, 8 Feb 2010 00:23:09 +0100 Subject: [PATCH] Fix new path update preference. --- src/ui/tool/path-manipulator.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index b1a86dd77..3a6b15f37 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -170,6 +170,11 @@ void PathManipulator::update() /** Store the changes to the path in XML. */ void PathManipulator::writeXML() { + if (!_live_outline) + _updateOutline(); + if (!_live_objects) + _setGeometry(); + if (!_path) return; _observer->block(); if (!empty()) { @@ -184,13 +189,6 @@ void PathManipulator::writeXML() _path = 0; } _observer->unblock(); - - if (!empty()) { - if (!_live_outline) - _updateOutline(); - if (!_live_objects) - _setGeometry(); - } } /** Remove all nodes from the path. */ -- 2.30.2