mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
FIX:fixed will create crash logs when open object table
fixed STUDIO-1983 Change-Id: I1f83f16fdc0677f0d00e79508779584789aaa6fa
This commit is contained in:
parent
ccfc61492b
commit
679ccb658b
1 changed files with 13 additions and 4 deletions
|
|
@ -1384,12 +1384,21 @@ wxString ObjectGridTable::GetValue (int row, int col)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
|
if (grid_row->row_type == row_volume){
|
||||||
ConfigOptionString& option_value = dynamic_cast<ConfigOptionString&>(option);
|
ConfigOptionString& option_value = dynamic_cast<ConfigOptionString&>(option);
|
||||||
if (grid_row->row_type == row_volume)
|
|
||||||
return GUI::from_u8(std::string(" ") + option_value.value);
|
return GUI::from_u8(std::string(" ") + option_value.value);
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
|
if (option.type() == coInt) {
|
||||||
|
ConfigOptionInt& option_value = dynamic_cast<ConfigOptionInt&>(option);
|
||||||
|
return GUI::from_u8(wxString::Format("%d",option_value.value).ToStdString());
|
||||||
|
}else {
|
||||||
|
ConfigOptionString& option_value = dynamic_cast<ConfigOptionString&>(option);
|
||||||
return GUI::from_u8(option_value.value);
|
return GUI::from_u8(option_value.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
catch(...) {
|
catch(...) {
|
||||||
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << boost::format("row %1%, col %2%, type %3% ")%row %col %grid_col->type;
|
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << boost::format("row %1%, col %2%, type %3% ")%row %col %grid_col->type;
|
||||||
return wxString();
|
return wxString();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue