undo: writing to XML during load
Hi all, We have a problem with the LPE-system writing to XML *during* the load process. When loading an SVG with path effects, you can do an undo operation that bugs. Upon loading a file, all effects get recalculated, because of "path_set" being the same for initialization and changes.
Can we fix the situation by simply (re-)initializing the undo system *after* a file has been fully loaded?
Cheers, Johan
2012/12/19 Johan Engelen <jbc.engelen@...2592...>:
Hi all, We have a problem with the LPE-system writing to XML *during* the load process. When loading an SVG with path effects, you can do an undo operation that bugs. Upon loading a file, all effects get recalculated, because of "path_set" being the same for initialization and changes.
If the values are the same, then it seems like the LPE system shouldn't really be writing anything to the XML Can you explain in more detail why this is necessary?
Regards, Krzysztof
On 21-12-2012 10:58, Krzysztof Kosiński wrote:
2012/12/19 Johan Engelen <jbc.engelen@...2592...>:
Hi all, We have a problem with the LPE-system writing to XML *during* the load process. When loading an SVG with path effects, you can do an undo operation that bugs. Upon loading a file, all effects get recalculated, because of "path_set" being the same for initialization and changes.
If the values are the same, then it seems like the LPE system shouldn't really be writing anything to the XML Can you explain in more detail why this is necessary?
Don't know how expensive a "compare path" operation is, but I guess less than writing it to XML. Think it's worthwhile to add such a comparison before writing to XML? (always that is, also during normal operation)
Cheers, Johan
participants (2)
-
Johan Engelen
-
Krzysztof Kosiński