← All bug reports

FS#7layer list not cleared when closing drawing

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
High
Priority
Normal
Reported version
Development
Target version
3.0.0
Operating system
All
Reported
2011-04-12 by anonymous
Closed
2011-04-13 by andrew
  1. new drawing
  2. add layer named "layer 1"
  3. close drawing

the layer list still shows 2 layers, "0" and "layer 1", but should be empty

Comments (1)

deleted user 2011-04-12

in this state, the application crashes if it loses the focus:

Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)	
	59 RStorage::setCurrentLayer()  0x08be6fac	
	58 RDocument::setCurrentLayer() /home/martin/workspace/rsframework/src/core/RDocument.cpp:256 0x08d7553f	
	57 RDocumentInterface::setCurrentLayer() /home/martin/workspace/rsframework/src/core/RDocumentInterface.cpp:1912 0x08d7cee4	
	56 REcmaDocumentInterface::setCurrentLayer() /home/martin/workspace/rsframework/src/scripting/ecmaapi/REcmaDocumentInterface.cpp:5207 0x08875305	
        ...