diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2009-05-25 08:52:44 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2009-05-25 08:52:44 +0000 |
| commit | 9d3a86e74decae9ee2c9fb934e6a6bf17291c8a3 (patch) | |
| tree | 8414cea62844a2e8a8d2833006ecb1b65a499ef7 /src/path-chemistry.cpp | |
| parent | * [INTL: zh_TW] Traditional Chinese translation of win32 installer encoding c... (diff) | |
| download | inkscape-9d3a86e74decae9ee2c9fb934e6a6bf17291c8a3.tar.gz inkscape-9d3a86e74decae9ee2c9fb934e6a6bf17291c8a3.zip | |
reverse nodetypes order (Bug #179866)
(bzr r7930)
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 46160ccf4..99ee78ade 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -541,7 +541,6 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/) } -// FIXME: THIS DOES NOT REVERSE THE NODETYPES ORDER! void sp_selected_path_reverse(SPDesktop *desktop) { @@ -579,6 +578,13 @@ sp_selected_path_reverse(SPDesktop *desktop) g_free(str); rcurve->unref(); + + // reverse nodetypes order (Bug #179866) + gchar *nodetypes = g_strdup(SP_OBJECT_REPR(path)->attribute("sodipodi:nodetypes")); + if ( nodetypes ) { + SP_OBJECT_REPR(path)->setAttribute("sodipodi:nodetypes", g_strreverse(nodetypes)); + g_free(nodetypes); + } } desktop->clearWaitingCursor(); |
