diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2006-03-28 17:14:27 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2006-03-28 17:14:27 +0000 |
| commit | 0ffc5334227542731ecdf06eca1a59e0a4457272 (patch) | |
| tree | 6b6e14bbd246b62492dadf4f2738eaed167041c5 /src/interface.cpp | |
| parent | optimization: create side knots and lines only on demand (diff) | |
| download | inkscape-0ffc5334227542731ecdf06eca1a59e0a4457272.tar.gz inkscape-0ffc5334227542731ecdf06eca1a59e0a4457272.zip | |
Changed objects to only get linked to "linkable" colors.
(bzr r321)
Diffstat (limited to 'src/interface.cpp')
| -rw-r--r-- | src/interface.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index 5de76aff1..c913d1122 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -1005,16 +1005,18 @@ sp_ui_drag_data_received(GtkWidget *widget, sp_desktop_apply_css_recursive( item, css, true ); item->updateRepr(); - if ( data->length > 12 ) { + if ( data->length > 14 ) { + int flags = dataVals[4]; + // piggie-backed palette entry info - int index = dataVals[4]; + int index = dataVals[5]; Glib::ustring palName; - for ( int i = 0; i < dataVals[5]; i++ ) { - palName += (gunichar)dataVals[6+i]; + for ( int i = 0; i < dataVals[6]; i++ ) { + palName += (gunichar)dataVals[7+i]; } // Now hook in a magic tag of some sort. - if ( !palName.empty() ) { + if ( !palName.empty() && (flags & 1) ) { gchar* str = g_strdup_printf("%d|", index); palName.insert( 0, str ); g_free(str); |
