Skip to content

Commit

Permalink
Merge pull request #806 from wsu-cb/fix-growable-rows-cols
Browse files Browse the repository at this point in the history
Fix wxFlexGridSizer XRC output of growablerows and growablecols

These properties are not simple integers but a list type data structure.
The wxFB format is identical to the XRC format so these can be passed as-is.
  • Loading branch information
sodevel committed Feb 19, 2024
2 parents bb4cf58 + 69ce2c9 commit 2d39f8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/layout/layout.cpp
Expand Up @@ -320,8 +320,8 @@ class FlexGridSizerBase : public ComponentBase
}
filter.AddProperty(XrcFilter::Type::Integer, "vgap");
filter.AddProperty(XrcFilter::Type::Integer, "hgap");
filter.AddProperty(XrcFilter::Type::Integer, "growablerows");
filter.AddProperty(XrcFilter::Type::Integer, "growablecols");
filter.AddProperty(XrcFilter::Type::Text, "growablerows");
filter.AddProperty(XrcFilter::Type::Text, "growablecols");
return xrc;
}

Expand All @@ -331,8 +331,8 @@ class FlexGridSizerBase : public ComponentBase
filter.AddProperty(XrcFilter::Type::Size, "minsize", "minimum_size");
filter.AddProperty(XrcFilter::Type::Integer, "vgap");
filter.AddProperty(XrcFilter::Type::Integer, "hgap");
filter.AddProperty(XrcFilter::Type::Integer, "growablerows");
filter.AddProperty(XrcFilter::Type::Integer, "growablecols");
filter.AddProperty(XrcFilter::Type::Text, "growablerows");
filter.AddProperty(XrcFilter::Type::Text, "growablecols");
return xfb;
}
};
Expand Down

0 comments on commit 2d39f8c

Please sign in to comment.