linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03117
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2402: make sure there's a theme before using it
------------------------------------------------------------
revno: 2402
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Fri 2011-01-28 00:46:12 +0100
message:
make sure there's a theme before using it
modified:
dwt/src/widgets/Table.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dwt/src/widgets/Table.cpp'
--- dwt/src/widgets/Table.cpp 2011-01-27 22:57:05 +0000
+++ dwt/src/widgets/Table.cpp 2011-01-27 23:46:12 +0000
@@ -380,7 +380,7 @@
theme.load(VSCLASS_LISTVIEW, this);
onRaw([this, bgColor](WPARAM, LPARAM lParam) -> LRESULT {
- if(!grouped || !lParam)
+ if(!grouped || !lParam || !theme)
return CDRF_DODEFAULT;
auto& data = *reinterpret_cast<LPNMLVCUSTOMDRAW>(lParam);
if(data.dwItemType == LVCDI_GROUP && data.nmcd.dwDrawStage == CDDS_PREPAINT) {