Skip to content

Commit

Permalink
fix QtSLiM issues with the new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Dec 22, 2023
1 parent 6cfa23c commit 2c6d069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QtSLiM/QtSLiMVariableBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ void QtSLiMVariableBrowser::itemExpanded(QTreeWidgetItem *item)
// we used to display zero-length property values for zero-length object vectors, but don't any more
int display_index = (element_index != -1) ? element_index : 0;
EidosValue_Object *eidos_object_vector = static_cast<EidosValue_Object *>(eidos_value);
EidosObject *eidos_object = eidos_object_vector->ObjectElementAtIndex(display_index, nullptr);
EidosObject *eidos_object = eidos_object_vector->ObjectElementAtIndex_NOCAST(display_index, nullptr);
const EidosClass *object_class = eidos_object->Class();
const std::vector<EidosPropertySignature_CSP> *properties = object_class->Properties();
size_t propertyCount = properties->size();
Expand Down
2 changes: 1 addition & 1 deletion QtSLiM/QtSLiM_SLiMgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ EidosValue_SP SLiMgui::ExecuteMethod_openDocument(EidosGlobalStringID p_method_i
#pragma unused (p_method_id, p_arguments, p_interpreter)

EidosValue *filePath_value = p_arguments[0].get();
std::string file_path = Eidos_ResolvedPath(Eidos_StripTrailingSlash(filePath_value->StringAtIndex(0, nullptr)));
std::string file_path = Eidos_ResolvedPath(Eidos_StripTrailingSlash(filePath_value->StringAtIndex_NOCAST(0, nullptr)));
QString filePath = QString::fromStdString(file_path);

controller_->eidos_openDocument(filePath);
Expand Down

0 comments on commit 2c6d069

Please sign in to comment.