User 870ab5b546
28-02-2009 23:38:36
One of my students drew a Marvin document that included an invisible rectangle. It was represented in the MRV code as follows:
I don't know how she was able to draw such a thing, but clearly, it is not something she should have been able to draw. The only ways to erase it were to Select All and erase everything, or to go into the MRV code, find which rectangle was causing the problems, delete its code, and import. The first would have entailed losing all her work, and the second was clearly too much to expect a student to do. I suggest that if a rectangle has an NaN coordinate, it be erased from the document completely.
Code: |
<MRectangle id="o1" color="#ff0000"> <MPoint x="-11.164999961853027" y="6.063750267028809" /> <MPoint x="NaN" y="NaN" z="NaN" /> <MPoint x="-6.930000185966492" y="5.678750038146973" /> <MPoint x="NaN" y="NaN" z="NaN" /> </MRectangle> |
I don't know how she was able to draw such a thing, but clearly, it is not something she should have been able to draw. The only ways to erase it were to Select All and erase everything, or to go into the MRV code, find which rectangle was causing the problems, delete its code, and import. The first would have entailed losing all her work, and the second was clearly too much to expect a student to do. I suggest that if a rectangle has an NaN coordinate, it be erased from the document completely.