mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
it's ok for there to be no form yet
This commit is contained in:
parent
93303973e3
commit
98fd464f3d
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ getFormRefcon()
|
||||||
{
|
{
|
||||||
void* result = NULL;
|
void* result = NULL;
|
||||||
FormPtr form = FrmGetFormPtr( XW_MAIN_FORM );
|
FormPtr form = FrmGetFormPtr( XW_MAIN_FORM );
|
||||||
XP_ASSERT( !!form );
|
|
||||||
if ( !!form ) {
|
if ( !!form ) {
|
||||||
UInt16 index = FrmGetObjectIndex( form, REFCON_GADGET_ID );
|
UInt16 index = FrmGetObjectIndex( form, REFCON_GADGET_ID );
|
||||||
result = FrmGetGadgetData( form, index );
|
result = FrmGetGadgetData( form, index );
|
||||||
|
|
Loading…
Add table
Reference in a new issue