Skip to content

Commit

Permalink
fixing the bug mentioned in PR KLayout#85
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslima committed Mar 15, 2018
1 parent 02c9c64 commit 8419ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lay/lay/layMacroEditorSetupPage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct MacroEditorSetupDialogData

void setup (lay::PluginRoot *root)
{
lay::MacroEditorHighlighters highlighters (0);
lay::MacroEditorHighlighters highlighters (lay::MacroEditorDialog::instance ());
std::string styles;
root->config_get (cfg_macro_editor_styles, styles);
highlighters.load (styles);
Expand Down Expand Up @@ -91,7 +91,7 @@ struct MacroEditorSetupDialogData

void commit (lay::PluginRoot *root)
{
lay::MacroEditorHighlighters highlighters (0);
lay::MacroEditorHighlighters highlighters (lay::MacroEditorDialog::instance ());

if (highlighters.basic_attributes ()) {
highlighters.basic_attributes ()->assign (basic_attributes);
Expand Down

0 comments on commit 8419ed0

Please sign in to comment.