Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion model/group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,10 @@ namespace minsky

void Group::gotoBookmark_b(const Bookmark& b)
{
moveTo(b.x, b.y);
// zoom first (about the group origin), then position, so the
// bookmarked offset is not distorted by the zoom
zoom(x(),y(),b.zoom/(relZoom*zoomFactor()));
moveTo(b.x, b.y);
// TODO add canvas::gotoBookmark to avoid dependency inversion
if (this==cminsky().canvas.model.get()) minsky().canvas.requestRedraw();
}
Expand Down
Loading