From a2d055af140c8450d892eb806fc60395990c40f0 Mon Sep 17 00:00:00 2001 From: Xavier Thomas Date: Tue, 4 Jan 2011 04:56:27 +0000 Subject: Fix bug #25471 --- source/blender/blenloader/intern/readfile.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'source') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b475050878a..44aa8bbf4cc 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -11225,6 +11225,27 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } /* put compatibility code here until next subversion bump */ + + { + /* Fix for sample line scope initializing with no height */ + bScreen *sc; + ScrArea *sa; + for(sc= main->screen.first; sc; sc= sc->id.next) { + sa= sc->areabase.first; + while(sa) { + SpaceLink *sl; + for (sl= sa->spacedata.first; sl; sl= sl->next) { + if(sl->spacetype==SPACE_IMAGE) { + SpaceImage *sima= (SpaceImage *)sl; + if (sima->sample_line_hist.height == 0 ) + sima->sample_line_hist.height = 100; + } + } + sa= sa->next; + } + } + } + { Key *key; -- cgit v1.2.3