mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-13 08:01:33 +01:00
oops. Fix assertion by not stopping dragging unless it's been
started.
This commit is contained in:
parent
57013a9267
commit
1f246d20a3
1 changed files with 5 additions and 4 deletions
|
@ -892,7 +892,6 @@ timerFiredForPen( BoardCtxt* board )
|
|||
}
|
||||
}
|
||||
board->penTimerFired = XP_TRUE;
|
||||
/* stop any dragging here */
|
||||
}
|
||||
} else if ( board->penDownObject == OBJ_SCORE ) {
|
||||
LocalPlayer* lp;
|
||||
|
@ -927,14 +926,16 @@ timerFiredForPen( BoardCtxt* board )
|
|||
}
|
||||
|
||||
if ( !!text ) {
|
||||
XP_Bool dragged;
|
||||
MiniWindowStuff* stuff = &board->miniWindowStuff[MINIWINDOW_VALHINT];
|
||||
makeMiniWindowForText( board, text, MINIWINDOW_VALHINT );
|
||||
XP_ASSERT( stuff->text == text );
|
||||
draw_drawMiniWindow(board->draw, text, &stuff->rect,
|
||||
&stuff->closure);
|
||||
dragDropEnd( board, board->penDownX, board->penDownY, &dragged );
|
||||
XP_ASSERT( !dragged );
|
||||
if ( dragDropInProgress( board ) ) {
|
||||
XP_Bool dragged;
|
||||
dragDropEnd( board, board->penDownX, board->penDownY, &dragged );
|
||||
XP_ASSERT( !dragged );
|
||||
}
|
||||
}
|
||||
return draw;
|
||||
} /* timerFiredForPen */
|
||||
|
|
Loading…
Reference in a new issue