Skip to content

Commit

Permalink
Fix type of parameter
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23703 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Henning Kiel committed Dec 9, 2014
1 parent 0b42a4b commit 6a24718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -236,7 +236,7 @@ QSize ItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelInd
QTextDocument textDocument;
initTextDocument(&textDocument, option.font, width); /* we can't use option.rect.width() here since it will be empty. */
textDocument.setHtml(text);
size.rheight() = qMax(textDocument.size().height(), 24.0);
size.rheight() = qMax(textDocument.size().height(), (qreal)24.0);
} else if (parent() && qobject_cast<LibraryTreeWidget*>(parent())) {
size.rheight() = size.height() + 2;
} else {
Expand Down

0 comments on commit 6a24718

Please sign in to comment.