comparison gui/ui/playbar.c @ 35779:8ad72f9cf697

Fix segmentation fault with menu window. Check whether menu is present before calling menu's mouse handler.
author ib
date Fri, 25 Jan 2013 11:57:24 +0000
parents 8ba56e7c14fb
children 4073fff5efc7
comparison
equal deleted inserted replaced
35778:8ba56e7c14fb 35779:8ad72f9cf697
209 case wsMoveMouse: 209 case wsMoveMouse:
210 item=&guiApp.playbarItems[SelectedItem]; 210 item=&guiApp.playbarItems[SelectedItem];
211 switch ( itemtype ) 211 switch ( itemtype )
212 { 212 {
213 case itPRMButton: 213 case itPRMButton:
214 guiApp.menuWindow.MouseHandler( 0,RX,RY,0,0 ); 214 if (guiApp.menuIsPresent) guiApp.menuWindow.MouseHandler( 0,RX,RY,0,0 );
215 break; 215 break;
216 case itPotmeter: 216 case itPotmeter:
217 item->value=(float)( X - item->x ) / item->width * 100.0f; 217 item->value=(float)( X - item->x ) / item->width * 100.0f;
218 goto potihandled; 218 goto potihandled;
219 case itVPotmeter: 219 case itVPotmeter: