Pointer check added to prevent "Jkey" (swap render display buffers) to
crash in cases. Patch by Diego Borghetti.
This commit is contained in:
Ton Roosendaal
2007-03-15 08:59:29 +00:00
parent 52e43441d1
commit 7272bdff76

View File

@@ -2299,7 +2299,8 @@ void imagewin_store_spare(void)
ibuf= BKE_image_get_ibuf(sima->image, &sima->iuser);
sima->spare= IMB_dupImBuf(ibuf);
BLI_strncpy(sima->info_spare, sima->info_str, RW_MAXTEXT);
if(sima->info_str)
BLI_strncpy(sima->info_spare, sima->info_str, RW_MAXTEXT);
}
}