bugGNU Octave - Bugs: bug #37007, Color property does not work for...


bug #37007: Color property does not work for text objects (OpenGl)

Submitted by:  Rik <rik5>
Submitted on:  Wed 01 Aug 2012 12:26:12 AM UTC  
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 24 Jun 2013 04:14:51 AM UTC, comment #5:

Just to confirm that this fixes the problem
reported in #39315.

Sorry about the duplication...

Michael Godfrey <godfrey>
Project Member
Mon 24 Jun 2013 02:40:58 AM UTC, comment #4:

Okay, I changed the cset to make the call to update_text_extent in graphics.in.h (http://hg.savannah.gnu.org/hgweb/octave/rev/4c51eaffa9e4). Closing report and associated duplicates.

Rik <rik5>
Project Administrator
Mon 24 Jun 2013 01:37:28 AM UTC, comment #3:

I was suggesting to modify graphics.in.h and add update_text_extent in the updater update_color, similar to what's done for other properties.

Michael Goffioul <goffioul>
Project Member
Mon 24 Jun 2013 01:31:06 AM UTC, comment #2:

I made a quick changeset which forcibly calls update_text_extent and it seems to work. See the attached. If you think this is okay I'll commit it in the next day or so.

(file #28397)

Rik <rik5>
Project Administrator
Mon 24 Jun 2013 12:58:51 AM UTC, comment #1:

I suppose that text::properties::update_color method should also call update_text_extent, as the latter is responsible for regenerating the internal cached rendered version of the text.

Michael Goffioul <goffioul>
Project Member
Wed 01 Aug 2012 12:26:12 AM UTC, original submission:

The Color property for a text object should change the font color to the specified Color. Instead, all text is black in Octave.

Sample Code:

The graphic property is updated correctly, but the color itself is unchanged.

Rik <rik5>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #28397:  text_color.cset added by rik5 (809B - application/octet-stream)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by goffioul (Posted a comment)
  • -unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Jun 2013 02:40:58 AM UTCrik5StatusIn Progress=>Fixed
    Mon 24 Jun 2013 01:32:47 AM UTCrik5Dependencies-=>bugs #38683 is dependent
    Mon 24 Jun 2013 01:31:06 AM UTCrik5Attached File-=>Added text_color.cset, #28397
      StatusNone=>In Progress
    Mon 24 Jun 2013 12:37:35 AM UTCrik5Dependencies-=>bugs #38264 is dependent
    Sun 23 Jun 2013 11:45:19 PM UTCrik5CategoryPlotting=>Plotting with OpenGL
      Severity1 - Wish=>3 - Normal
      SummaryColor property does not work for text objects=>Color property does not work for text objects (OpenGl)

    Back to the top

    Powered by Savane 3.1-cleanup1