]> git.saurik.com Git - wxWidgets.git/commit - include/wx/dvrenderers.h
Account for text attrs in generic wxDataViewCtrl's renderers.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 30 Oct 2010 15:57:49 +0000 (15:57 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 30 Oct 2010 15:57:49 +0000 (15:57 +0000)
commit86755098f52bd0f2c180d2d5ed2202c5d0e25df2
tree84b35062e13f021aeb2edc4fb34dfdedc91b9068
parentd0154e3a5a3353bc9f26f8ef1ca7db44ac4835e4
Account for text attrs in generic wxDataViewCtrl's renderers.

When determining cell content's size, GetSize() measured the text using
wxDataViewCtrl's font, even though it could be renderer in bold or
italics.

Corrected by setting the attributes - and not only the value - prior to
GetSize() calls, and by using the right font in GetTextExtent() calls.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/dataview.h
include/wx/dvrenderers.h
src/common/datavcmn.cpp
src/generic/datavgen.cpp