mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-13 23:43:03 +00:00
fix build failed bugs.
This commit is contained in:
@@ -149,7 +149,12 @@ bool MarkdownTip::ShowTip(wxPoint pos, std::string const &tip, std::string const
|
||||
// Ensure display size is valid
|
||||
if (size.y <= 0) size.y = 600;
|
||||
if (pos.y + this->GetSize().y > size.y)
|
||||
pos.y = std::max(0, size.y - this->GetSize().y);
|
||||
{
|
||||
pos.y = 0;
|
||||
if( (size.y - this->GetSize().y) > 0)
|
||||
pos.y = (size.y - this->GetSize().y);
|
||||
}
|
||||
|
||||
this->SetPosition(pos);
|
||||
if (tipChanged || _hide) {
|
||||
_hide = false;
|
||||
|
||||
@@ -496,7 +496,7 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt)
|
||||
}
|
||||
}
|
||||
|
||||
wxGetApp().fltviews().relead_all();
|
||||
wxGetApp().fltviews().reload_all();
|
||||
}
|
||||
|
||||
this->EndModal(wxID_OK);
|
||||
|
||||
Reference in New Issue
Block a user