diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-08-13 18:30:30 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2011-08-13 18:30:30 +0000 |
| commit | caa510445fc091c63e1ca0ff8f44f2e81ae0638d (patch) | |
| tree | fca330f29571cec93d02ef611d5e292b8e2fc035 /src/display/drawing.cpp | |
| parent | Do not leak cache objects in DrawingItem destructor (diff) | |
| download | inkscape-caa510445fc091c63e1ca0ff8f44f2e81ae0638d.tar.gz inkscape-caa510445fc091c63e1ca0ff8f44f2e81ae0638d.zip | |
More generic handling of child type in DrawingItem.
Fix clip object selection bug (LP #365458).
Fixed bugs:
- https://launchpad.net/bugs/365458
(bzr r10347.1.31)
Diffstat (limited to 'src/display/drawing.cpp')
| -rw-r--r-- | src/display/drawing.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/display/drawing.cpp b/src/display/drawing.cpp index 5881c84ed..e1a17edf1 100644 --- a/src/display/drawing.cpp +++ b/src/display/drawing.cpp @@ -42,7 +42,10 @@ Drawing::setRoot(DrawingItem *item) { delete _root; _root = item; - _root->_drawing_root = true; + if (item) { + assert(item->_child_type == DrawingItem::CHILD_ORPHAN); + item->_child_type = DrawingItem::CHILD_ROOT; + } } RenderMode @@ -168,10 +171,10 @@ Drawing::render(DrawingContext &ct, Geom::IntRect const &area, unsigned flags) } DrawingItem * -Drawing::pick(Geom::Point const &p, double delta, bool sticky) +Drawing::pick(Geom::Point const &p, double delta, unsigned flags) { if (_root) { - return _root->pick(p, delta, sticky); + return _root->pick(p, delta, flags); } return NULL; } |
