https://bugs.freedesktop.org/show_bug.cgi?id=80633

--- Comment #1 from Michael Meeks <[email protected]> ---
By adding some debug I get (first line is count of number of duplicate prints)
- and this is for Format->Paragraph on a clean writer load:

      1 get_ungrouped_preferred size for ('7VclVBox') [0x9c01c78] -> 801, 585
      1 get_ungrouped_preferred size for ('9SwParaDlg') [0x9e3c588] -> 817, 601
      1 get_ungrouped_preferred size for
('N12_GLOBAL__N_119SvxFontSizeBox_ImplE') [0x9db0c50] -> 74, 35
      5 get_ungrouped_preferred size for ('10TabControl') [0x9ecc6a0] -> 801,
527
      5 get_ungrouped_preferred size for ('12VclAlignment') [0x9f430f8] -> 597,
87
      5 get_ungrouped_preferred size for ('13VclHButtonBox') [0x9ec98a8] ->
358, 36
...
     16 get_ungrouped_preferred size for ('9FixedText') [0x9fbbf88] -> 75, 21
     16 get_ungrouped_preferred size for ('9FixedText') [0x9fbc610] -> 47, 21
     17 get_ungrouped_preferred size for ('12VclAlignment') [0x9ecf428] -> 218,
318
     17 get_ungrouped_preferred size for ('16ImplBorderWindow') [0x9fbd3a0] ->
77, 33
...
     56 get_ungrouped_preferred size for ('9FixedText') [0x9ed2260] -> 99, 21
     56 get_ungrouped_preferred size for ('9FixedText') [0x9ed28c8] -> 82, 21
     56 get_ungrouped_preferred size for ('9FixedText') [0x9ed30e0] -> 77, 21
     74 get_ungrouped_preferred size for ('8CheckBox') [0x9f77f38] -> 182, 23
     74 get_ungrouped_preferred size for ('8CheckBox') [0x9f78688] -> 131, 23
    114 get_ungrouped_preferred size for ('9FixedText') [0x9f01a18] -> 76, 21
    225 get_ungrouped_preferred size for ('11RadioButton') [0x9f6b3b8] -> 100,
23
    225 get_ungrouped_preferred size for ('11RadioButton') [0x9f6c9f8] -> 140,
23
    225 get_ungrouped_preferred size for ('9FixedText') [0x9f6de90] -> 83, 21
    331 get_ungrouped_preferred size for ('16ImplBorderWindow') [0x9ee9198] ->
77, 33
    387 get_ungrouped_preferred size for ('16ImplBorderWindow') [0x9ee1b48] ->
135, 28
    387 get_ungrouped_preferred size for ('9FixedText') [0x9ee7bd8] -> 18, 21

One interesting thing is that the sizes seem to be always the same ie. I've not
see the same widget pointer get a different size. That seems to suggest that
caching the results of the sizing / text measuring here - as is done in gtk+
would be a really good idea - to prune the amount of cycles spent re-measuring
text etc. Although perhaps that is already done (?) possibly something in
getOptimalSize would be useful here (?).

Sadly I ran out of time to dig into this myself [ or put another way my
quick-hack of a cache crashed and I lost the patch while doing something else
].

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to