Skip to content

Commit

Permalink
update ps fix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Mar 3, 2017
1 parent ed4c537 commit 2de4bb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Explore/MapNewView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ SliderDialog::SliderDialog(wxWindow * parent,
txt_transparency,
wxDefaultPosition,
wxSize(100, -1));
boxSizer->Add(slider_text, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 5);
boxSizer->Add(slider_text, 0, wxGROW|wxALL, 5);
boxSizer->Add(new wxButton(this, wxID_CANCEL, _("Close")), 0, wxALIGN_CENTER|wxALL, 10);

topSizer->Fit(this);
Expand Down
5 changes: 3 additions & 2 deletions TemplateCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,9 @@ void TemplateCanvas::helper_DrawSelectableShapes_dc(wxDC &dc, bool hl_only,
continue;
}
int bnd_idx = p->center.x + p->center.y*w;
if (is_print ||
(bnd_idx >= 0 && bnd_idx < bnd && !dirty[bnd_idx])) {
if (is_print) {
dc.DrawCircle(p->center.x, p->center.y, r);
} else if (bnd_idx >= 0 && bnd_idx < bnd && !dirty[bnd_idx]) {
dc.DrawCircle(p->center.x, p->center.y, r);
dirty[bnd_idx] = true;
}
Expand Down

0 comments on commit 2de4bb8

Please sign in to comment.