[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUstep app fails on Ubuntu 16 - found workaround
From: |
Fred Kiefer |
Subject: |
Re: GNUstep app fails on Ubuntu 16 - found workaround |
Date: |
Fri, 8 May 2020 20:15:14 +0200 |
> Am 08.05.2020 um 20:00 schrieb Andreas Höschler <ahoesch@smartsoft.de>:
>
> NSButtonCell.m
> ==================
> - (NSSize) cellSize
> {
> ...
> if (imageToDisplay)
> {
> imageSize = [imageToDisplay size];
> NSLog(@"cellSize imageSize %@", NSStringFromSize(imageSize));
> }
> ...
> case NSImageLeft:
> case NSImageRight:
> s.width = imageSize.width + titleSize.width + GSCellTextImageXDist;
> NSLog(@"imageSize.height %f titleSize.height %f", imageSize.height,
> titleSize.height);
> s.height = MAX(imageSize.height, titleSize.height);
> break;
> ...
>
> // Add border size
> s.width += border.left + border.right;
> NSLog(@"border.top %f border.bottom %f", border.top, border.bottom);
> s.height += border.top + border.bottom;
> NSLog(@"returning s %@", NSStringFromSize(s));
> ...
> }
>
>
> 2020-05-08 19:58:14.729 SOObjectBrowser[14224:14224] cellSize imageSize
> {width = 15; height = 15}
> 2020-05-08 19:58:14.730 SOObjectBrowser[14224:14224] imageSize.height
> 15.000000 titleSize.height 10000000.000000
> 2020-05-08 19:58:14.730 SOObjectBrowser[14224:14224] border.top 0.000000
> border.bottom 0.000000
> 2020-05-08 19:58:14.730 SOObjectBrowser[14224:14224] returning s {width = 18;
> height = 1e+07}
> 2020-05-08 19:58:14.730 SOObjectBrowser[14224:14224] Reporting
> button::imagePosition 2
> 2020-05-08 19:58:14.730 SOObjectBrowser[14224:14224] Reporting
> _cell::imagePosition 2
> 2020-05-08 19:58:14.730 SOObjectBrowser[14224:14224] Got height
> 10000004.000000. We correct this ...
>
> The mess is caused by the titleSize!? :-( I haven't set a title since this is
> an image only button!
Now we are getting closer. But this is weird, The variable titleSize gets
initialised with NSZeroSize and later only changed here
if (titleToDisplay != nil)
{
titleSize = [titleToDisplay size];
}
Could you add another NSLog line there and report the value of titleToDisplay?
This looks like either a bug in our NSString drawing code or the compiler
itself. We really need to get to the bottom of this. Fixing NSWindow is just a
work around that won’t help you much.
Fred
- Re: GNUstep app fails on Ubuntu 16, (continued)
- Re: GNUstep app fails on Ubuntu 16, Andreas Höschler, 2020/05/06
- Re: GNUstep app fails on Ubuntu 16, Andreas Höschler, 2020/05/06
- Re: GNUstep app fails on Ubuntu 16 shmget() related, Andreas Höschler, 2020/05/06
- Re: GNUstep app fails on Ubuntu 16 shmget() related, Riccardo Mottola, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Andreas Höschler, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Fred Kiefer, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Fred Kiefer, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Andreas Höschler, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Fred Kiefer, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Andreas Höschler, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround,
Fred Kiefer <=
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Andreas Höschler, 2020/05/08
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Fred Kiefer, 2020/05/09
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Andreas Höschler, 2020/05/09
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Fred Kiefer, 2020/05/09
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Andreas Höschler, 2020/05/11
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Fred Kiefer, 2020/05/11
- Re: GNUstep app fails on Ubuntu 16 - found workaround, Riccardo Mottola, 2020/05/10
- Re: GNUstep app fails on Ubuntu 16, Riccardo Mottola, 2020/05/07
- Re: GNUstep app fails on Ubuntu 16, Riccardo Mottola, 2020/05/06
- Re: GNUstep app fails on Ubuntu 16, Svetlana, 2020/05/06