mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: calibration
1.fix some issue: STUDIO-3127、STUDIO-3138、STUDIO-3135、STUDIO-3123、STUDIO-3117、STUDIO-3115、STUDIO-3114、STUDIO-3113、STUDIO-3112 and other issues 2.refine UI 3.FLOW RATE multi-slots calibrate saving related logic 4.add input validate and access protection Change-Id: Ie6c04fdfd050cc48607182bd8cc8f145381a5b70
This commit is contained in:
@@ -151,12 +151,16 @@ void TabButtonsListCtrl::RemovePage(size_t n)
|
||||
m_sizer->Layout();
|
||||
}
|
||||
|
||||
bool TabButtonsListCtrl::SetPageImage(size_t n, const std::string &bmp_name) const
|
||||
bool TabButtonsListCtrl::SetPageImage(size_t n, const std::string &bmp_name)
|
||||
{
|
||||
if (n >= m_pageButtons.size())
|
||||
return false;
|
||||
|
||||
ScalableBitmap bitmap(NULL, bmp_name);
|
||||
|
||||
ScalableBitmap bitmap;
|
||||
if (!bmp_name.empty())
|
||||
bitmap = ScalableBitmap(this, bmp_name, 14);
|
||||
m_pageButtons[n]->SetBitmap(bitmap);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user