Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The problem is not because of operator overloading.
The error occurs because of wrong unparsing of the string. I have fixed the problem so that OMEdit doesn't crash any more. But to make things work correctly we need to modify the getComponents result. Right now it returns an array which contains strings and boolean value. If we change it so that it just return and array of strings then StringHandler::unparseStrings works like i charm. Will discuss it more with Adrian.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10652 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Dec 5, 2011
1 parent e21725c commit f2b41a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OMEdit/OMEditGUI/Component.cpp
Expand Up @@ -1042,12 +1042,18 @@ void Component::getClassComponents(QString className, int type)
getClassComponents(inheritedClass, type);
}

if (className.compare("Modelica_LinearSystems2.ZerosAndPoles.Internal.normalizationFactor") == 0)
qDebug() << "i m here";

QList<ComponentsProperties*> components = mpOMCProxy->getComponents(className);
this->mpChildComponentProperties = components;
QStringList componentsAnnotationsList = mpOMCProxy->getComponentAnnotations(className);
int i = 0;
foreach (ComponentsProperties *componentProperties, components)
{
if (componentsAnnotationsList.size() <= i)
continue;

if (static_cast<QString>(componentsAnnotationsList.at(i)).toLower().contains("error"))
{
i++;
Expand Down

0 comments on commit f2b41a5

Please sign in to comment.