Fixed a typo from the last commit, fixed one compilation warning.
This commit is contained in:
parent
c258375fe2
commit
0222492e29
2 changed files with 2 additions and 2 deletions
|
@ -747,7 +747,7 @@ void GUI_App::load_current_presets()
|
||||||
void GUI_App::MacOpenFiles(const wxArrayString &fileNames)
|
void GUI_App::MacOpenFiles(const wxArrayString &fileNames)
|
||||||
{
|
{
|
||||||
std::vector<std::string> files;
|
std::vector<std::string> files;
|
||||||
for (size_t i = 0; i < fileNames.Len(); ++ i)
|
for (size_t i = 0; i < fileNames.GetCount(); ++ i)
|
||||||
files.emplace_back(fileNames[i].ToUTF8().data());
|
files.emplace_back(fileNames[i].ToUTF8().data());
|
||||||
this->plater()->load_files(files, true, true);
|
this->plater()->load_files(files, true, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,7 +329,7 @@ public:
|
||||||
{
|
{
|
||||||
if (GetChildCount() == 0)
|
if (GetChildCount() == 0)
|
||||||
return;
|
return;
|
||||||
for (size_t id = GetChildCount() - 1; id >= 0; --id)
|
for (int id = int(GetChildCount()) - 1; id >= 0; --id)
|
||||||
{
|
{
|
||||||
if (m_children.Item(id)->GetChildCount() > 0)
|
if (m_children.Item(id)->GetChildCount() > 0)
|
||||||
m_children[id]->RemoveAllChildren();
|
m_children[id]->RemoveAllChildren();
|
||||||
|
|
Loading…
Add table
Reference in a new issue