octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43960] reset (figure) on invisible figure cau


From: Rik
Subject: [Octave-bug-tracker] [bug #43960] reset (figure) on invisible figure causes it to flash
Date: Mon, 02 Feb 2015 16:01:54 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

Follow-up Comment #4, bug #43960 (project octave):

For the flash portion, it would seem that we need to merge the list of
property values from the defaults and the user overrides before applying them
all at once.

My understanding is that instead we use a for loop to apply all of the factory
defaults and then another for loop to apply all of the user's overrides.  This
serial application of properties causes the flash.

I don't know if this is the optimal way, but it seems like you could use a
hash, i.e. std::map in C++, to do this.  Use a for loop over the base
properties to create key/value pairs.  And then use a second loop to load in
any additional use overrides.  Finally write out all of the properties in the
hash.  We could even be clever about it and pre-define a static variable hash
which contains all of the factory defaults.  That way we could eliminate the
first for loop and only process the user overrides.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43960>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]