After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316597 - Rotated texts are not displayed
Rotated texts are not displayed
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: .General
2.8.x
Other Linux
: Normal normal
: Small fix
Assigned To: Jody Goldberg
Jody Goldberg
: 316757 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-09-17 21:35 UTC by Emmanuel Pacaud
Modified: 2011-08-28 18:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emmanuel Pacaud 2005-09-17 21:35:45 UTC
Distribution/Version: Ubuntu breezy

Enter a value in a cell.
Edit cell format and set rotation to a value != 0.

-> Cell is resized, but empty.

I don't know if it's related, but I've got the broken pango warning:

** (lt-gnumeric:22326): WARNING **: The Pango library present on your system
isbuggy, see
http://bugzilla.gnome.org/show_bug.cgi?id=316054
Editing rich text therefore does not work well.  Please check
with your distribution if a fixed Pango library is available.
Comment 1 Morten Welinder 2005-09-18 00:06:30 UTC
Works fine for me with gtk+ 2.6.x and pango 1.8.x.  What do you use?

The warning covers a different issue only.
Comment 2 Emmanuel Pacaud 2005-09-18 06:01:05 UTC
pango 1.10.0
gtk 2.8.3
glib 2.8.1

Rotated texts are displayed correctly in charts.
Comment 3 Morten Welinder 2005-09-19 11:56:01 UTC
Probably a Pango issue.
Comment 4 Morten Welinder 2005-09-20 01:36:32 UTC
It is suspect that gtk+ HEAD's gdk_draw_layout_line_with_colors says...

      tmp_matrix.x0 = x;
      tmp_matrix.y0 = y;

as opposed to the "+=" used in gdk_draw_layout_with_colors.
Comment 5 Jody Goldberg 2005-09-20 02:49:56 UTC
I've disabled to clip for rotation for now.  That's mostly the same thing.
Comment 6 Jody Goldberg 2005-09-20 17:05:26 UTC
I'll pop it over to gtk so they can figure out what changed between 2.6 and 2.8.
Comment 7 Matthias Clasen 2005-09-21 16:55:37 UTC
Do you have a testcase for the problematic behaviour, and does
changing 

      tmp_matrix.x0 = x;
      tmp_matrix.y0 = y;

to

     tmp_matrix.x0 += x;
     tmp_matrix.y0 += y;

fix it ?

Comment 8 Matthias Clasen 2005-09-21 16:57:13 UTC
*** Bug 316757 has been marked as a duplicate of this bug. ***
Comment 9 Morten Welinder 2005-09-21 17:06:37 UTC
We do not have a simple test case, but Gnumeric 1.5.90 is a test case.

I do not think that "+=" alone will fix it.  In fact, while I believe it
needs to be fixed, I am fairly certain that Gnumeric almost always will have
x0=y0=0 initially so we will not see a change.

Note jody's #5 comment.  It makes a difference whether there is a clip
rectangle of (0,0,G_MAXINT,G_MAXINT) or no clip rectangle at all.

[I still run gtk+ 2.6 so I cannot test this myself]
Comment 10 Matthias Clasen 2005-09-26 20:36:52 UTC
Ok, I will need more time to create a testcase for this, moving off 2.8.4
Comment 11 Matthias Clasen 2011-08-28 16:26:33 UTC
I'm just going to assume that this is either fixed, or long obsolete.
Comment 12 Behdad Esfahbod 2011-08-28 18:00:45 UTC
I have a vague memory that I fixed this, years ago...  But can't find a reference.