lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] fix compilation with wx-2.8 compatibility disabled


From: Greg Chicares
Subject: Re: [lmi] fix compilation with wx-2.8 compatibility disabled
Date: Sun, 23 Feb 2014 00:53:50 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 2014-02-03 15:06Z, Václav Slavík wrote:
> 
> the patch below fixes LMI compilation against wxWidgets with
> WXWIN_COMPATIBILITY_2_8 disabled (as is the default in wx3).

Committed 20140223T0043Z, revision 5858.

[...]
>      // 100 is the default minimal size of a widget - taken from wx headers.
> -    int width  = std::max(self->GetRowLabelSize() + self->GetColumnWidth(0), 
> 100);
> +    int width  = std::max(self->GetRowLabelSize() + self->GetColSize(0), 
> 100);
>      int height = std::max(self->GetColLabelSize() + self->GetRowHeight(0), 
> 100);

I somewhat expected that GetRowHeight() would have to change to
GetRowSize(). But it doesn't matter--if such a change is needed
for wx-3.0, that will become apparent soon enough.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]