Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Sep 2013 15:25:47 +0000 (15:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Sep 2013 15:25:47 +0000 (15:25 +0000)
commit3e33568e0bd8416417916d194fc9a50cab9636bf
tree2b06bc7b6a4f0d83f234828d40412106dbe0965a
parentb59ada676f4bc7c0250fc83ad6182bd2fc7212c6
Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.

This helper method falls back on the alignment of the column if the renderer
alignment is not specified. This is almost always what should be used instead
of GetAlignment() to determine the alignment that really should be used in the
drawing code.

In particular, using GetEffectiveAlignment() in wxDataViewCustomRenderer fixes
the problem with bitmap columns ignoring column alignment for their bitmaps.

Closes #15498.

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