Skip to content

Commit

Permalink
fix: clipboard paste position pattern and special brushes palette (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
phacUFPE authored Aug 14, 2024
1 parent f1ed084 commit 1409cdd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,12 @@ bool posFromClipboard(int &x, int &y, int &z) {
if (text[s] >= '0' && text[s] <= '9') {
sv << text[s];
r = true;

if (s + 1 == text.size()) {
values.emplace_back(ws2i(sv));
}
} else if (r) {
values.push_back(ws2i(sv));
values.emplace_back(ws2i(sv));
sv.Clear();
r = false;

Expand Down
2 changes: 2 additions & 0 deletions source/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,8 @@ PaletteWindow* GUI::CreatePalette() {
// Select brush from this palette
SelectBrushInternal(palette->GetSelectedBrush());

RefreshPalettes();

return palette;
}

Expand Down

0 comments on commit 1409cdd

Please sign in to comment.