Fix FTBFS with GCC7 on arm

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 7 years ago
parent 117acbb7bd
commit 20261377cf

@ -339,7 +339,7 @@ void LiquidStyle::polish( const TQStyleControlElementData &ceData, ControlElemen
int format, result;
unsigned long n, left;
result = XGetWindowProperty(tqt_xdisplay(), w->winId(), baghira_deco_design, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, &data);
if (result != Success || data == None) // not found set design
if (result != Success || data == NULL) // not found set design
{
int tmp = optionHandler->wmDesign != Tiger ? optionHandler->wmDesign : Panther;
XChangeProperty(tqt_xdisplay(), w->winId(), baghira_deco_design, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &(tmp), 1L);

Loading…
Cancel
Save