Skip to content

Commit

Permalink
fix: crash on listbox
Browse files Browse the repository at this point in the history
  • Loading branch information
phacUFPE committed Sep 13, 2024
1 parent 536299b commit 2d63ae7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/palette_brushlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,18 +385,30 @@ void BrushPalettePanel::OnPreviousPage(wxCommandEvent &WXUNUSED(event)) {
}

void BrushPalettePanel::EnableNextPage(bool enable /* = true*/) {
if (!nextPageButton) {
return;
}
nextPageButton->Enable(enable);
}

void BrushPalettePanel::EnablePreviousPage(bool enable /* = true*/) {
if (!previousPageButton) {
return;
}
previousPageButton->Enable(enable);
}

void BrushPalettePanel::SetPageInfo(const wxString &text) {
if (!pageInfo) {
return;
}
pageInfo->SetLabelText(text);
}

void BrushPalettePanel::SetCurrentPage(const wxString &value) {
if (!currentPageCtrl) {
return;
}
currentPageCtrl->SetValue(value);
}

Expand Down

0 comments on commit 2d63ae7

Please sign in to comment.