thanks to brian wang - check if show item has a block.

SVN revision: 70452
This commit is contained in:
Carsten Haitzler 2012-04-25 00:44:16 +00:00
parent b27633c238
commit ca6111b857
1 changed files with 1 additions and 1 deletions

View File

@ -2815,7 +2815,7 @@ _calc_job(void *data)
dy = 0;
break;
}
if (wd->show_item)
if ((wd->show_item) && (wd->show_item->item->block))
{
if ((pan_w > (wd->show_item->x + wd->show_item->item->block->x)) &&
(pan_h > (wd->show_item->y + wd->show_item->item->block->y + dy)))