summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorJiHO <jiho-sf@users.sourceforge.net>2008-01-02 21:40:08 +0000
committerjiho-sf <jiho-sf@users.sourceforge.net>2008-01-02 21:40:08 +0000
commitbb23a712ececfc1ae30bf80c4e5b7f6740eee1ac (patch)
treebf8868a298af10fc5e59e3579ea36a343f0ccbf0 /src/nodepath.cpp
parentpatch by John Faith https://bugs.launchpad.net/inkscape/+bug/175697 (diff)
downloadinkscape-bb23a712ececfc1ae30bf80c4e5b7f6740eee1ac.tar.gz
inkscape-bb23a712ececfc1ae30bf80c4e5b7f6740eee1ac.zip
fix for gcc 3.3 by John Faith. https://bugs.launchpad.net/inkscape/+bug/178180
(bzr r4371)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 38552f7f7..55c9ea3c7 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -1391,7 +1391,8 @@ void sp_node_selected_move_absolute(Inkscape::NodePath::Path *nodepath, NR::Coor
*/
NR::Maybe<NR::Coord> sp_node_selected_common_coord (Inkscape::NodePath::Path *nodepath, NR::Dim2 axis)
{
- g_return_val_if_fail(nodepath->selected, NR::Nothing());
+ NR::Maybe<NR::Coord> no_coord = NR::Nothing();
+ g_return_val_if_fail(nodepath->selected, no_coord);
// determine coordinate of first selected node
GList *nsel = nodepath->selected;