Add test to avoid null pointer crashes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f4ec7192a9
commit
9b186420ff
@ -67,7 +67,7 @@ void Fl_Image_Surface::untranslate() {
|
||||
}
|
||||
|
||||
/** Returns the Fl_Offscreen object associated to the image surface */
|
||||
Fl_Offscreen Fl_Image_Surface::offscreen() {return platform_surface->offscreen;}
|
||||
Fl_Offscreen Fl_Image_Surface::offscreen() {return platform_surface? platform_surface->offscreen : NULL;}
|
||||
|
||||
int Fl_Image_Surface::printable_rect(int *w, int *h) {return platform_surface->printable_rect(w, h);}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user