fix build failed bugs.

This commit is contained in:
alves
2026-03-05 18:57:09 +08:00
parent be8952f8b6
commit 5d18dffc4a
2 changed files with 7 additions and 2 deletions

View File

@@ -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;

View File

@@ -496,7 +496,7 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt)
}
}
wxGetApp().fltviews().relead_all();
wxGetApp().fltviews().reload_all();
}
this->EndModal(wxID_OK);