- // unless I misunderstand the format (may be index may be ommited, I
- // don't know)
- wxASSERT( !(strFullPath.IsEmpty() || strIndex.IsEmpty()) );
+ // index may be omitted, in which case Before(',') is empty and
+ // Right(',') is the whole string
+ if ( strFullPath.IsEmpty() ) {
+ strFullPath = strIndex;
+ strIndex = "0";
+ }