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

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

[Octave-bug-tracker] [bug #37290] gnuplot / demo plotyy followed by somb


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #37290] gnuplot / demo plotyy followed by sombrero errors out
Date: Thu, 16 May 2013 19:00:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #18, bug #37290 (project octave):

OK, I'll make a note of that...

I'm sort of remembering this now.  I can describe what the problem is, but I
don't know how to solve it because I don't know where the defaults are
supposed to be coming from.  (Maybe that's what "factory_defaults" is supposed
to be.)

The problem is that this hunk of code in graphics.cc:


reset_default_properties (property_list& default_properties)
{
  property_list new_defaults;

  for (property_list::plist_map_const_iterator p = default_properties.begin
();
       p != default_properties.end (); p++)
    {


never goes inside the loop because "default_properties" is empty.  I've
verified that the for-loop is reached, but nothing happens.  The function
makes sense: new_defaults is supposed to be a copy of factory_defaults(?) and
then the current settings for figure->"position", figure->"units",
figure->"windowstyle", figure->"paperunits", axes->"position" and
axes->"units" are copied if they are present because those are supposed to be
retained.

However, I can't find where "default_properties", or "new_defaults" for that
matter, is being set anywhere.  It seems like there should be a ":
default_properties(factory_defaults)" in the constructor and maybe:

property_list new_defaults = factory_defaults;

or something like that.  I'm not sure though because those are supposed to
come from the particular graphics engine, or maybe from the base class.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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