Skip to content

Commit

Permalink
Stash wiring tab zoomfactor, set to unity, then restore in publicatio…
Browse files Browse the repository at this point in the history
…n tab draw() method. For ravel #554.
  • Loading branch information
highperformancecoder committed May 7, 2024
1 parent 1abe3b0 commit e15ee08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/pubTab.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ namespace minsky
cairo_translate(cairo, offsx, offsy);
cairo_scale(cairo, m_zoomFactor, m_zoomFactor);
cairo_set_line_width(cairo, 1);
// stash toplevel zoomfactor and set it to 1.
auto zf=cminsky().model->relZoom;
cminsky().model->relZoom=1;
for (auto& i: items)
{
const CairoSave cs(cairo);
Expand All @@ -159,6 +162,7 @@ namespace minsky
abs(lasso.x0-lasso.x1), abs(lasso.y0-lasso.y1));
cairo_stroke(cairo);
}
cminsky().model->relZoom=zf; // restore zoomFactor
return !items.empty() || clickType!=ClickType::outside;
}

Expand Down

0 comments on commit e15ee08

Please sign in to comment.