Commit Graph

4 Commits

Author SHA1 Message Date
Vadim Zeitlin
4e5e788bae Use correct format (%zu) for printing size_t values.
Fix assert due to using %d for printing 64 bit size_t values under Win64.

See #16974.

(this is a backport of 6c7c8b6d8d from master)
2016-01-14 15:41:44 +01:00
Tim Kosse
8be40b6789 include/wx/generic/private/widthcalc.h makes use of wxLogTrace, so wx/log.h needs to be included.
This fixes a regression introduced by commits b64e030f0c and c21ad5d9c2 which break compilation when configured with --disable-precomp-headers.
2015-09-29 10:35:07 +02:00
Kinaou Hervé
b64e030f0c Correct implement wxLIST_AUTOSIZE_XXX in the generic wxListCtrl.
Use both the contents and the header width when wxLIST_AUTOSIZE_USEHEADER is
given instead of just the latter.

Also make both wxLIST_AUTOSIZE_USEHEADER and the previously implemented
wxLIST_AUTOSIZE work efficiently for the virtual list controls by reusing
wxMaxWidthCalculatorBase already used in the generic wxDataViewCtrl.

Closes #10326.

(this is a backport of de7e315557 and
0e2d9e539c from master)
2015-09-27 11:57:13 +02:00
Vadim Zeitlin
c21ad5d9c2 Factor out wxMaxWidthCalculatorBase from wxDataViewCtrl code.
This will allow reusing it elsewhere, notably in the generic wxListCtrl.

See #10326.

(this is a backport of fa1c3ecfa6 from master)
2015-09-27 11:54:40 +02:00