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 167544 - Rotated text fails to refresh correctly
Rotated text fails to refresh correctly
Status: RESOLVED OBSOLETE
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal minor
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-02-16 00:20 UTC by Liam Quin
Modified: 2018-05-22 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample sheet created using the procedure described (12.50 KB, application/octet-stream)
2005-02-16 00:21 UTC, Liam Quin
Details
screen shots showing the differences (84.52 KB, image/jpeg)
2005-03-11 05:31 UTC, Liam Quin
Details

Description Liam Quin 2005-02-16 00:20:02 UTC
Version details: gnumeric-1.4.2-1mdk
Distribution/Version: Mandrake Cooker

[1] make a new sheet
[2] in two or more adjacent horizontal cells, enter a short word of text
[3] select the cells, choose Format Cells / Alignment, and set to be, say,
    45 degrees
[5] make the text longer in each cell by adding more words

You should be able to read the text of all the cells at once (this is the main
use of diagonal text!) but in fact each text is clipped to its cell boundary,
rendering the feature less useful than one might 
like.  Excel and oocalc let the text cross column bounderies.
Comment 1 Liam Quin 2005-02-16 00:21:50 UTC
Created attachment 37516 [details]
sample sheet created using the procedure described

The sheet displays correctly in oocalc.
Comment 2 Morten Welinder 2005-02-16 18:00:52 UTC
There are several issues here:

1. Row 8 isn't importing with the right height.
2. Apparently any rotation should turn off clipping.  I had hoped not to have
   to do that.
Comment 3 Jody Goldberg 2005-02-20 03:00:42 UTC
What generated that file ?
Comment 4 Morten Welinder 2005-03-09 15:58:43 UTC
Liam: any news of this?
Comment 5 Liam Quin 2005-03-09 17:15:13 UTC
Oops, sorry, I missed the question.  The sample file was generated in gnumeric.
 The one that alerted me to the problem came from Excel.  I can supply the Excel
file if it will help.  It also demonstrates an incompatibility in the area of
conditional formatting, for which I have not yet had time to construct a test case.

I have gnumeric-1.4.2-1mdk on Mandrake cooker.

Liam
Comment 6 Jody Goldberg 2005-03-10 06:49:09 UTC
liam : I'm confused.  If you create the sample in gnumeric
Does it look different when re-loaded into gnumeric ?
or does it only look different when re-loaded into XL & OO ?

There are two things at work here
1) clipped text does not span as expected
2) the sample file you supplied stores a row height, but XL & OO seem to ignore it

(1) will be fairly easy to solve
(2) seems odd.  When you first generated the file in gnumeric, what was the row
height ?
Comment 7 Liam Quin 2005-03-11 05:07:25 UTC
I created the sample in gnumeric to reproduce the problem.  I didn't do anything
explicit to create a row hight.

The file looks broken here if I re-open it in gnumeric.

The original spreadsheet I receieved was made and saved in excel, and looked
fine in that and in OO, but in gnumeric the diagonal text didn't span columns
properly.  I didn't send you that sheet because it was large, but I can do so
privately if it will help.  I'll also add a couple of screenshots to show what's
going on.

Liam
Comment 8 Liam Quin 2005-03-11 05:31:45 UTC
Created attachment 38536 [details]
screen shots showing the differences

Here are four screen-shots, montaged together to save space and generate less
mail :-)  It's saved with high jpeg compression so the text is blurry, but that
doesn't matter for the purposes of this bug report.

(1) the original excel spreadsheet, in open office oocalc -- looking OK
(2) the same excel file in gnumeric, showing the diagonal text not working
right
(3) the sample file attached to this bug report, in oocalc (looks OK)
(4) the sample file attached to this bug report, in gnumeric (diagonal text is
    clipped to columns and hence is useless/unreadable)

I didn't set the row height in the attachmet -- I think gnumeric set it when I
rotated the text.

Liam
Comment 9 Morten Welinder 2005-03-14 02:55:02 UTC
Thanks.  Issues...

A. We clip rotated text.  Well know, well understood.

B. Comparing 1 and 2 suggests that we don't align vertically correctly.
   Please check that you are using Pango 1.8.1.  If you are, then please
   let us know exactly what format is in cell B5.

C. Comparing 3 and 4 shows that the height of row 8 is wrong when imported into
   Gnumeric.  We do not understand this.

D. Comparing 1 and 2, we seem to be missing colours.  Is that just conditional
   formats?  (We haven't implemented that yet.)
Comment 10 Liam Quin 2005-03-14 06:38:47 UTC
Thanks for the reply.
A. was the point of the bug report originally.
B. Yes, I am using Pango 1.8.1.
How do I tell the format exactly?
Alignment in gnumeric says Left / Bottom, Wrap text, 45 degrees. Number is General.
C. I didn't set the height of the row. The spreadsheet file I used was attached
to this bug report.
D. Yes, the colours are conditional formatting.  Although the spreadhseet is
hard to read without the colours, the clipping of the diagonal text was (and
remains) the main problem.

Liam
Comment 11 Andreas J. Guelzow 2005-03-25 20:46:43 UTC
*** Bug 171631 has been marked as a duplicate of this bug. ***
Comment 12 Morten Welinder 2005-04-07 17:16:40 UTC
Reopening -- I see no open questions.
Comment 13 Morten Welinder 2005-04-08 15:23:20 UTC
B is fixed.  (Rotation suppresses wrapping.)
Comment 14 Morten Welinder 2005-04-08 18:07:46 UTC
That was wrong.  Thus not fixed.
Comment 15 Morten Welinder 2005-04-08 18:29:49 UTC
Our problem with wrapping ("B") can be seen over in bug 173095.  Interestingly,
OO seems to have the same problem.
Comment 16 Morten Welinder 2005-05-25 15:22:34 UTC
Drawing is mostly fixed now.  It isn't perfect, but it will generally produce a
sensible result.

We need a new span type to do it right.
Comment 17 Andreas J. Guelzow 2009-03-11 06:15:33 UTC
Is there anything left in this bug??
Comment 18 Morten Welinder 2009-03-11 13:19:48 UTC
Yes.

A7 = dfjsdhjfsdfj h sdf jsdfjk sd
Format A7 to 45 degrees.
Resize row 7 to regular height.
Press [up] six times.

Notice how part of the text is now missing.


There are probably similar minor display artifacts lurking around.
Comment 19 Andreas J. Guelzow 2009-03-11 15:18:12 UTC
So its not really about clipping anymore but failure to refresh.
Comment 20 Morten Welinder 2009-03-11 15:45:54 UTC
Nope.

When row 7 is resized, we should clip at the top of the row.
(But not at the right edge, even if the next cell has contents.)

This is hideously complicated and probably is different for negative
angles, etc.
Comment 21 Andreas J. Guelzow 2009-03-11 18:59:17 UTC
I take it that we are trying to emulate Excel and so don't know what to do?

Otherwise we should define the behaviour we expect to see.

For angle 0 we only let the text overwrite empty cells. Per se I see no reason why the same isn't true for angles not equal to 0.
Comment 22 Morten Welinder 2009-03-11 19:15:04 UTC
> I take it that we are trying to emulate Excel and so don't know what to do?

That's pretty much it.  The concept of rotated text in a spreadsheet is of
pretty limited utility so there is no good reason to break Excel compatibility
over it.

One (mildly) common usage is for column headers that are wider than the
cells can show.  With a reasonable angle like +30 deg, they overlap each
others cells -- but not text -- and thus remain readable.  In contrast,
an angle of 0 will guarantee textual overlap, so we really have to clip
for that.  No-one cares much about angles like 1 degree.
Comment 23 GNOME Infrastructure Team 2018-05-22 13:09:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnumeric/issues/36.