------------------------------------------------------------
revno: 2402
committer: poy <[email protected]>
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) {

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to