Skip to content

Commit

Permalink
Move update of statusbar to DrawSelect (#778)
Browse files Browse the repository at this point in the history
This makes it interoperable on Windows, Linux and macOS.
  • Loading branch information
tobiolo authored Dec 9, 2024
1 parent bbff91e commit 0e71786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ struct Document {
}

void DrawSelect(wxDC &dc, Selection &s, bool refreshinstead = false, bool cursoronly = false) {
sys->UpdateAmountStatus(s);
#ifdef SIMPLERENDER
if (refreshinstead) {
Refresh();
Expand Down Expand Up @@ -711,7 +712,6 @@ struct Document {
hover.g = nullptr;
redrawpending = true;
sys->UpdateStatus(selected);
sys->UpdateAmountStatus(selected);
#ifdef __WXGTK__
// wxWidgets (wxGTK) does not always automatically update the scrollbar
// to new canvas size and current position within after zoom so force it manually
Expand Down

0 comments on commit 0e71786

Please sign in to comment.