diff options
author | David Robillard <d@drobilla.net> | 2008-09-28 15:22:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-28 15:22:07 +0000 |
commit | 3b424fd8b55ee68f229463ccf3408de81a5c56d9 (patch) | |
tree | 3772dacecd58310d8a6f4f9a491ddb1321497fb1 /gtk2_ardour/lineset.cc | |
parent | 6b50ba341da426805ce3c92609c0fa12c52b67ac (diff) |
Invalidate line cache when zoomed out to invisible line levels.
Reduce line cache size to 128.
git-svn-id: svn://localhost/ardour2/branches/3.0@3819 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/lineset.cc')
-rw-r--r-- | gtk2_ardour/lineset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/lineset.cc b/gtk2_ardour/lineset.cc index 61e5804ed4..352d9331eb 100644 --- a/gtk2_ardour/lineset.cc +++ b/gtk2_ardour/lineset.cc @@ -269,7 +269,7 @@ LineSet::line_at(double coord) if (cached_pos != lines.end()) { if (coord < cached_pos->coord) { /* backward search */ - while(--cached_pos != lines.end()) { + while (--cached_pos != lines.end()) { if (cached_pos->coord <= coord) { if (cached_pos->coord + cached_pos->width < coord) { /* coord is between two lines */ @@ -281,7 +281,7 @@ LineSet::line_at(double coord) } } else { /* forward search */ - while(cached_pos != lines.end()) { + while (cached_pos != lines.end()) { if (cached_pos->coord > coord) { /* we searched past the line that we want, so now see if the previous line includes the coordinate */ |