(0011009)
|
Utkarsh Ayachit
|
2008-04-01 09:18
|
|
vtkSMStringVectorProperty addded attributes to
vtkPVXMLElement when saving state using "AddSanitizedValue". It assumed that
when the state is reloaded, the string value will need to be unsanitized.
However, the expat parser unsanitized string by default. So when a
vtkPVXMLElement as saved to a file and then reloaded, it would automatically
loose all sanitization. Now if the vtkPVXMLElement was saved to file again, all
the strings would be unsanitized.
Hence if a custom filter with programmable filter and some funky script was
created, then the first time paraview exited, everything was peachy. The second
time it exists, it saves invalid XML in the session file. Consequently, the
third time paraview was started, it would complain!
Fixed by getting rid of "SanitizedAttribute" API. Instead, vtkPVXMLElement
always saves all attributes sanitized. Hence SetAttribute/GetAttribute never has
to worry about sanitization.
/cvsroot/ParaView3/ParaView3/Qt/Components/pqLookmarkModel.cxx,v <-- Qt/Components/pqLookmarkModel.cxx
new revision: 1.15; previous revision: 1.14
/cvsroot/ParaView3/ParaView3/Servers/Common/vtkPVXMLElement.cxx,v <-- Servers/Common/vtkPVXMLElement.cxx
new revision: 1.20; previous revision: 1.19
/cvsroot/ParaView3/ParaView3/Servers/Common/vtkPVXMLElement.h,v <-- Servers/Common/vtkPVXMLElement.h
new revision: 1.16; previous revision: 1.15
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/vtkSMStringVectorProperty.cxx,v <-- Servers/ServerManager/vtkSMStringVectorProperty.cxx
new revision: 1.35; previous revision: 1.34 |
|