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 162961 - Rich text format strangeness
Rich text format strangeness
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI Expression Entry Widget
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on: 163162
Blocks:
 
 
Reported: 2005-01-04 21:55 UTC by j.gnome
Modified: 2005-05-25 15:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test file (1.56 KB, application/octet-stream)
2005-01-04 21:56 UTC, j.gnome
Details
test file, version 2 (1.83 KB, application/octet-stream)
2005-01-09 03:35 UTC, j.gnome
Details

Description j.gnome 2005-01-04 21:55:50 UTC
1. Load the test file
2. Press Backspace, type "ooooo"

The first o is bold, then 2 normal ones, then 2 bold ones, etc.

I can't make a similar buggy file anymore, now that bug 161723 is fixed. I made
the test file while playing with that bug.
Comment 1 j.gnome 2005-01-04 21:56:26 UTC
Created attachment 35449 [details]
test file
Comment 2 Morten Welinder 2005-01-04 22:03:01 UTC
Confirmed, although the instructions are missing "press F2".
Comment 3 Morten Welinder 2005-01-05 02:25:42 UTC
The file contains this sniplet from which we learn that we build up attributes
lists in the wrong way.  (I.e., we need to use pango_attr_list_change more often
and pango_attr_list_insert less.)

        <gmr:Cell Col="0" Row="0" ValueType="60"
ValueFormat="@[family=Sans:2:9][size=10240:2:9][italic=0:2:9][color=00x00x00:2:9][underline=none:2:9][bold=0:2:3][bold=1:2:5][bold=0:2:7][bold=1:2:9][bold=0:2:9][bold=0:2:9][bold=1:2:9][bold=0:2:9][bold=1:2:9][bold=0:4:9][bold=1:6:9][bold=0:8:9]">f
ffffff</gmr:Cell>

Comment 4 j.gnome 2005-01-09 03:35:23 UTC
Created attachment 35707 [details]
test file, version 2

I played with this a bit more. See attachment. The "f ffffff" is identical on
each line.

I can file new bugs for these if necessary. Bug 163415 is basically 5) but with
a different file.
Comment 5 j.gnome 2005-01-09 04:10:35 UTC
4), not 5)
Comment 6 Morten Welinder 2005-01-09 17:37:34 UTC
Pango is at fault for this.  If you can generate any strangeness starting from
a blank book, I'd be interested.  Otherewise, please wait until we get a fixed
pango.
Comment 7 j.gnome 2005-01-09 18:33:16 UTC
Bug 163415 starts from a blank book.
Comment 8 Morten Welinder 2005-05-25 15:12:28 UTC
We are now working around this problem is gnumeric HEAD.  1.4.x will still nead
a fixed pango.  (That might take a while as pango is effectively unmaintained.)