summaryrefslogtreecommitdiff
path: root/libs/canvas/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/canvas/item.cc')
-rw-r--r--libs/canvas/item.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc
index ddc05a817a..bab6e73b54 100644
--- a/libs/canvas/item.cc
+++ b/libs/canvas/item.cc
@@ -173,8 +173,10 @@ Item::item_to_window (ArdourCanvas::Duple const & d, bool rounded) const
{
Duple ret = item_to_canvas (d).translate (-scroll_offset());
- ret.x = round (ret.x);
- ret.y = round (ret.y);
+ if (rounded) {
+ ret.x = round (ret.x);
+ ret.y = round (ret.y);
+ }
return ret;
}