Skip to content

Commit 406d1ee

Browse files
committed
- Fix build.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25293 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent f315596 commit 406d1ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

OMEdit/OMEditGUI/Component/Component.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,11 @@ void Component::parseAnnotationString(QString annotation)
316316
else if (shape.startsWith("Bitmap"))
317317
{
318318
/* get the class file path */
319-
QString classFileName;
320-
QVariantMap classInformation = mpOMCProxy->getClassInformation(mClassName);
321-
classFileName = classInformation["fileName"].toString();
319+
OMCInterface::getClassInformation_res classInformation = mpOMCProxy->getClassInformation(mClassName);
322320
/* create the bitmap shape */
323321
shape = shape.mid(QString("Bitmap").length());
324322
shape = StringHandler::removeFirstLastBrackets(shape);
325-
BitmapAnnotation *pBitmapAnnotation = new BitmapAnnotation(classFileName, shape, this);
323+
BitmapAnnotation *pBitmapAnnotation = new BitmapAnnotation(classInformation.fileName, shape, this);
326324
mShapesList.append(pBitmapAnnotation);
327325
}
328326
}

0 commit comments

Comments
 (0)