Skip to content

Commit

Permalink
BUGIX: lost data if model space and active layout are called *MODEL_S…
Browse files Browse the repository at this point in the history
…PACE and *PAPER_SPACE
  • Loading branch information
mozman committed Jan 31, 2017
1 parent aacc58b commit 9737d63
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
News
====

Version 0.7.9 - 2017-01-31

* BUGIX: lost data if model space and active layout are called *MODEL_SPACE and *PAPER_SPACE
Version 0.7.8 - 2017-01-22

* BUGFIX: HATCH accepts SplineEdges without defined fit points
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '0.7.8'
version = '0.7.9'
# The full version, including alpha/beta/rc tags.
release = '0.7.8'
release = '0.7.9'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 0 additions & 5 deletions examples/rename_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

dwg = ezdxf.readfile(r'C:\Users\manfred\Desktop\now\ACAD_R2004.dxf')
msp = dwg.modelspace()
print(len(msp))

dwg.saveas(r'C:\Users\manfred\Desktop\now\renamed_layer.dxf')

exit(0)

OLD_LAYER_NAME = 'TITEL_025'
NEW_LAYER_NAME = 'MOZMAN'
Expand Down
2 changes: 1 addition & 1 deletion ezdxf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License: MIT License
from __future__ import unicode_literals

version = (0, 7, 8) # also update VERSION in setup.py
version = (0, 7, 9) # also update VERSION in setup.py
VERSION = "%d.%d.%d" % version
__version__ = VERSION
__author__ = "mozman <mozman@gmx.at>"
Expand Down
2 changes: 1 addition & 1 deletion ezdxf/modern/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def taborder(self):
return self.dxf_layout.dxf.taborder

def is_active(self):
return self.block_record_name in ('*Model_Space', '*Paper_Space')
return self.block_record_name.upper() in ('*PAPER_SPACE', '*MODEL_SPACE')

def _set_paperspace(self, entity):
entity.dxf.paperspace = self._paperspace
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os
from setuptools import setup

VERSION = "0.7.8" # also update VERSION in __init__.py
VERSION = "0.7.9" # also update VERSION in __init__.py
AUTHOR_NAME = 'Manfred Moitzi'
AUTHOR_EMAIL = 'mozman@gmx.at'

Expand Down

0 comments on commit 9737d63

Please sign in to comment.