On 20-Sep-2001 Juergen Spitzmueller wrote:
> Am Donnerstag, 20. September 2001 14:00 schrieb Juergen Vigna:
>> IMO we should still check if there was no change! It's easy enough
>> and it needs only a private class variable in the FormDocument. So we
>> won't do anything if we didn't really do anything.
> 
> But it should work (not like the previous solution). And I can't do 
> this because I don't know anything about private class variables.
> BTW: the settings will only be reset on article -> article if you 
> explicitely chose that class again in the combox. If you just open the 
> combox and close it again (with that arrow-thing), nothing happens. So 
> having just a look what's in the combox is possible without any hassle.

Just define in FormDocument.h:

unsigned int old_class;

Initialize this in the update() call and check for it in the class_apply
function. This should work as expected then. Anyway it is not so important
if we have AutoReset off by default.

>> Also I think that by default AutoReset should be set off.
> 
> That is no problem. We only need to set 
> lyxrc.auto_reset_options = false.

Then we should do that!

         Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Too much is just enough.
                -- Mark Twain, on whiskey

Reply via email to