summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2017-10-06 11:24:03 +0000
committerShlomi Fish <shlomif@shlomifish.org>2017-10-06 11:24:03 +0000
commitf92314219dd24eb0b9df0399e2b8d6e4d2ef13ad (patch)
treec8ed2ec4470c182f444faf4408cf8ea86f9d2236 /src/display
parentupdate a comment and remove trail space (diff)
downloadinkscape-f92314219dd24eb0b9df0399e2b8d6e4d2ef13ad.tar.gz
inkscape-f92314219dd24eb0b9df0399e2b8d6e4d2ef13ad.zip
refactoring
Diffstat (limited to 'src/display')
-rw-r--r--src/display/drawing-text.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/display/drawing-text.cpp b/src/display/drawing-text.cpp
index 21af7b200..484fcaa43 100644
--- a/src/display/drawing-text.cpp
+++ b/src/display/drawing-text.cpp
@@ -685,11 +685,7 @@ void DrawingText::_clipItem(DrawingContext &dc, Geom::IntRect const &/*area*/)
DrawingItem *
DrawingText::_pickItem(Geom::Point const &p, double delta, unsigned flags)
{
- DrawingItem *picked = DrawingGroup::_pickItem(p, delta, flags);
- if (picked) {
- return this;
- }
- return NULL;
+ return DrawingGroup::_pickItem(p, delta, flags) ? this : NULL;
}
bool