From 81f88ca0856da56bdf426cd065ff0acd3414567f Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 9 Feb 2010 03:20:18 +0100 Subject: Fix multiple minor problems in the node tool (bzr r9070) --- src/selection-chemistry.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index a5c6ae961..4dfb4597d 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -118,10 +118,12 @@ void SelectionHelper::selectAll(SPDesktop *dt) { if (tools_isactive(dt, TOOLS_NODES)) { InkNodeTool *nt = static_cast(dt->event_context); - nt->_multipath->selectSubpaths(); - } else { - sp_edit_select_all(dt); + if (!nt->_multipath->empty()) { + nt->_multipath->selectSubpaths(); + return; + } } + sp_edit_select_all(dt); } void SelectionHelper::selectAllInAll(SPDesktop *dt) -- cgit v1.2.3