Skip to content

Commit a159608

Browse files
committed
Fix AUI quirk with miscalculated wxAuiToolbar
Applying the perspective after a perspective reset, the third icon from repltb went missing. Fix this by adding a strechtable space.
1 parent 0311f70 commit a159608

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tsframe.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,7 @@ struct TSFrame : wxFrame {
874874
L"cancel_dark.svg");
875875
AddToolbarIcon(findtb, _(L"Go to Next Search Result"), A_SEARCHNEXT, iconpath,
876876
L"search.svg", L"search_dark.svg");
877+
findtb->AddStretchSpacer();
877878
findtb->Realize();
878879

879880
auto repltb = new wxAuiToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
@@ -888,6 +889,7 @@ struct TSFrame : wxFrame {
888889
L"replace_dark.svg");
889890
AddToolbarIcon(repltb, _(L"Replace All"), A_REPLACEALL, iconpath, L"replaceall.svg",
890891
L"replaceall_dark.svg");
892+
repltb->AddStretchSpacer();
891893
repltb->Realize();
892894

893895
auto GetColorIndex = [&](int targetcolor) {

0 commit comments

Comments
 (0)