diff --git a/source/common.cpp b/source/common.cpp index 106c3d41..066d5729 100644 --- a/source/common.cpp +++ b/source/common.cpp @@ -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; diff --git a/source/gui.cpp b/source/gui.cpp index a1e044aa..6abd6fc0 100644 --- a/source/gui.cpp +++ b/source/gui.cpp @@ -980,6 +980,8 @@ PaletteWindow* GUI::CreatePalette() { // Select brush from this palette SelectBrushInternal(palette->GetSelectedBrush()); + RefreshPalettes(); + return palette; }