Commit e369ec4f authored by sumpfralle's avatar sumpfralle

fix the file extension for "Save text" button


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@870 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent f281096c
...@@ -2280,12 +2280,12 @@ class ProjectGui: ...@@ -2280,12 +2280,12 @@ class ProjectGui:
# we open a dialog # we open a dialog
# determine the file type # determine the file type
# TODO: this needs to be decided by the exporter code # TODO: this needs to be decided by the exporter code
if isinstance(self.model, pycam.Geometry.Model.Model): if isinstance(model, pycam.Geometry.Model.Model):
# TODO: fix this extremely fragile filter # TODO: fix this extremely fragile filter
type_filter = [(name, patterns) type_filter = [(name, patterns)
for name, patterns in FILTER_MODEL for name, patterns in FILTER_MODEL
if "STL" in name.upper()] if "STL" in name.upper()]
elif isinstance(self.model, pycam.Geometry.Model.ContourModel): elif isinstance(model, pycam.Geometry.Model.ContourModel):
type_filter = [(name, patterns) type_filter = [(name, patterns)
for name, patterns in FILTER_MODEL for name, patterns in FILTER_MODEL
if "SVG" in name.upper()] if "SVG" in name.upper()]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment