Skip to content

Commit

Permalink
Use the correct object.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 1, 2016
1 parent 62c0c86 commit 8d2d2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -1980,7 +1980,7 @@ LibraryTreeItem* LibraryTreeModel::getLibraryTreeItemFromFileHelper(LibraryTreeI
LibraryTreeItem *pFoundLibraryTreeItem = 0;
for (int i = 0; i < pLibraryTreeItem->getChildren().size(); i++) {
LibraryTreeItem *pChildLibraryTreeItem = pLibraryTreeItem->child(i);
if ((pChildLibraryTreeItem->getFileName().compare(fileName) == 0) && pLibraryTreeItem->inRange(lineNumber)) {
if ((pChildLibraryTreeItem->getFileName().compare(fileName) == 0) && pChildLibraryTreeItem->inRange(lineNumber)) {
return pChildLibraryTreeItem;
}
}
Expand Down

0 comments on commit 8d2d2ec

Please sign in to comment.