From 7593a59e87a49b4d0a3126011b6a7eb21e15387b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 1 Oct 2001 19:38:28 +0000 Subject: FLUID: can't use "i->image(o)" if "i" is NULL... :) Fl_Help_View: Don't need "if (!orig) free(img->data);" - that condition can never occur... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Help_View.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 1cffa8069..4cc2180d2 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Help_View.cxx,v 1.1.2.2 2001/10/01 19:33:22 easysw Exp $" +// "$Id: Fl_Help_View.cxx,v 1.1.2.3 2001/10/01 19:38:28 easysw Exp $" // // Fl_Help_View widget routines. // @@ -728,9 +728,6 @@ Fl_Help_View::add_image(const char *name, // I - Path of image } // Finally, copy the new size and data to the image structure... - if (!orig) - free(img->data); - img->w = width; img->h = height; img->data = scaled; @@ -3581,5 +3578,5 @@ scrollbar_callback(Fl_Widget *s, void *) // -// End of "$Id: Fl_Help_View.cxx,v 1.1.2.2 2001/10/01 19:33:22 easysw Exp $". +// End of "$Id: Fl_Help_View.cxx,v 1.1.2.3 2001/10/01 19:38:28 easysw Exp $". // -- cgit v1.2.3