diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-04-01 20:25:52 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-04-01 20:25:52 +0000 |
| commit | ba3598b34aaacdce96b0ac9422f579c26ae36500 (patch) | |
| tree | 38ed48ee62aef5be30d1d2c31c7d17583f4f03ee /src/desktop.cpp | |
| parent | delete remaining .cvsignore files (diff) | |
| download | inkscape-ba3598b34aaacdce96b0ac9422f579c26ae36500.tar.gz inkscape-ba3598b34aaacdce96b0ac9422f579c26ae36500.zip | |
move temporary canvas items to bottom by default. maybe fixes interfering of snapindicator with pen tool
(bzr r5300)
Diffstat (limited to 'src/desktop.cpp')
| -rw-r--r-- | src/desktop.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index a899e76c9..eee0446db 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -397,10 +397,15 @@ SPDesktop::~SPDesktop() {} /** Note that lifetime is measured in milliseconds * it is perfectly safe to ignore the returned pointer: the object is deleted by itself, so don't delete it elsewhere! * The return value should only be used as argument for SPDesktop::remove_temporary_canvasitem, because the object might be deleted already. +* move_to_bottom = true by default so the item does not interfere with handling of other items on the canvas like nodes. */ Inkscape::Display::TemporaryItem * -SPDesktop::add_temporary_canvasitem (SPCanvasItem *item, guint lifetime) +SPDesktop::add_temporary_canvasitem (SPCanvasItem *item, guint lifetime, bool move_to_bottom) { + if (move_to_bottom) { + sp_canvas_item_move_to_z(item, 0); + } + return temporary_item_list->add_item(item, lifetime); } |
