Hi,
when reverting a document via File->Revert, is it possible to preserve the current zoom factor and panning? If not, what would it require to implement this? It's not that I urgently need it or am particularly keen on implementing it, just figured it might be useful and thought I'd ask.
Cheers, Max
On 9/11/07, Maximilian Albert <Anhalter42@...173...> wrote:
Hi,
when reverting a document via File->Revert, is it possible to preserve the current zoom factor and panning? If not, what would it require to implement this? It's not that I urgently need it or am particularly keen on implementing it, just figured it might be useful and thought I'd ask.
On document load, zoom is restored by sp_namedview_window_from_document. So in the revert command, you just need to remember zoom before that and restore it after loading.
bulia byak wrote:
On document load, zoom is restored by sp_namedview_window_from_document. So in the revert command, you just need to remember zoom before that and restore it after loading.
Alright, since it really turned out to be easy I added some lines of code. Now reverting files always preserves the current zoom and view. This is what I personally have come to find the most useful behaviour. I don't use revert often, though, so if this contradicts the way of working anyone has gotton used to, please tell me so that the change can either be reverted or an option added to the preferences to switch between both alternatives.
Thanks, Max
On 9/11/07, Maximilian Albert <Anhalter42@...173...> wrote:
Alright, since it really turned out to be easy I added some lines of code. Now reverting files always preserves the current zoom and view.
I think it's OK to leave, just please mention that in the release notes.
bulia byak schrieb:
On 9/11/07, Maximilian Albert <Anhalter42@...173...> wrote:
Alright, since it really turned out to be easy I added some lines of code. Now reverting files always preserves the current zoom and view.
I think it's OK to leave, just please mention that in the release notes.
Already done. :)
participants (2)
-
bulia byak
-
Maximilian Albert