]> git.lyx.org Git - lyx.git/commit
Do not save \origin when \save_transient_properties is false (#9958)
authorGuillaume Munch <gm@lyx.org>
Wed, 3 Feb 2016 18:42:04 +0000 (18:42 +0000)
committerGuillaume Munch <gm@lyx.org>
Tue, 9 Feb 2016 17:48:16 +0000 (17:48 +0000)
commite56820bea459e08af1c44310852e75c5edbe1792
tree10cc90dbe5a9ece326422fa33d50ee374714838f
parent28040119576f3914a9e233bd064bf09731427046
Do not save \origin when \save_transient_properties is false (#9958)

\origin is a transient property in the sense that in a collaborative context
each co-author is going to have a different value for it. Moreover, \save_origin
is a global (lyxrc) setting that cannot yet be deactivated for a single file,
but one author's setting is going to impact other authors, even those who have
set save_origin=false.

There is only one location where lyxrc.save_origin produces an effect, modified
by this patch. With this patch, everything happens as if lyxrc.save_origin was
false whenever save_transient_properties=false.

This is not a file format change. When a file has
save_transient_properties=false but an origin is set (for instance a file
produced before this patch) then the origin produces its effect before the file
is saved. This produces the same effect as if the user decided to disable
save_origin between two sessions.
src/BufferParams.cpp