Commits

Anonymous committed 68030dd

#i10000# fixed crash cause by dtrans move

  • Participants
  • Parent commits 4de0ae0

Comments (0)

Files changed (2)

sd/source/ui/app/sdmod.cxx

 
 SdModule::~SdModule()
 {
+    // Mark the module in the global AppData structure as deleted.
+    SdModule** ppShellPointer = (SdModule**)GetAppData(SHL_DRAW);
+    if (ppShellPointer != NULL)
+        (*ppShellPointer) = NULL;
+
     delete pSearchItem;
 
     if( pNumberFormatter )

sd/source/ui/app/sdxfer.cxx

 
 sal_Bool SdTransferable::GetData( const DataFlavor& rFlavor )
 {
+	if (SD_MOD()==NULL)
+		return sal_False;
+
 	sal_uInt32	nFormat = SotExchange::GetFormat( rFlavor );
 	sal_Bool	bOK = sal_False;