Skip to content

Commit

Permalink
Fixed issue #317 : When loading GRFX XML file set created_from_dll fl…
Browse files Browse the repository at this point in the history
…ag when class_factory_dll is set (filter created by Insert Filter From DLL).
  • Loading branch information
root6technology committed Jan 28, 2018
1 parent 5647698 commit c8510fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/display_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,19 @@ GRAPHSTUDIO_NAMESPACE_START // cf stdafx.h for explanation
}

RefreshFilters();

if (dll.GetLength() > 0) {
// Mark the filter we created as being created by a DLL class factory
const INT_PTR filter_count = filters.GetCount();
for (int i = 0; i < filter_count; i++) {
GraphStudio::Filter * const f = filters[i];
if (f->filter == instance) {
f->created_from_dll = true;
break;
}
}
}

return hr;
}

Expand Down

0 comments on commit c8510fc

Please sign in to comment.