[prev in list] [next in list] [prev in thread] [next in thread] 

List:       abiword-dev
Subject:    Re: Immediate crash loading a document in CVS HEAD. - FIXED
From:       msevior () physics ! unimelb ! edu ! au
Date:       2006-12-19 2:42:26
Message-ID: 2329.210.49.163.240.1166496146.squirrel () kiosk ! ph ! unimelb ! edu ! au
[Download RAW message or body]


I just fixed this.

Martin



>
> This happens because in pd_Document.cpp::PD_Document::_importFile(const
> char * szFilename, int ieft,
> 								  bool markClean, bool bImportStylesFirst,
> 								  bool bIsImportFile, const char* impProps)
> --------------------------------------------------------------------
> Creates a GsfInput
> ----------------------------------------------------------------------
> 	GsfInput * input;
>
> 	input = UT_go_file_open(szFilename, NULL);
> -----------------------------------------------------------------------
> Which is passed through to
>
> UT_Error PD_Document::_importFile(GsfInput * input, int ieft,
> 								  bool markClean, bool bImportStylesFirst,
> 								  bool bIsImportFile, const char* impProps)
>
> ---------------------------------------------------------------------
>
> Then this line:
> ---------------------------------------------------------------------
> 	const char * szFilename = gsf_input_name (input);
> ---------------------------------------------------------------------
>
> returns NULL
>
> Which leads to a crash.
>
> Any ideas Dom?
>
> Cheers
>
> Martin
>
>
> 	const char * szFilename = gsf_input_name (input);
>
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic