IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38288


Ignore:
Timestamp:
May 18, 2015, 8:25:52 PM (11 years ago)
Author:
eugene
Message:

fix segfault for png without image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150419/Ohana/src/kapa2/src/bDrawIt.c

    r38270 r38288  
    2323      section = GetSectionByNumber (i);
    2424      bDrawImage (buffer, section->image, graphic);
    25       bDrawGraph (buffer, section->graph);
    26       for (i = 0; i < NOVERLAYS; i++) {
     25      for (i = 0; section->image && (i < NOVERLAYS); i++) {
    2726        if (section->image->overlay[i].active) bDrawOverlay (buffer, section->image, i);
    2827      }
     28      bDrawGraph (buffer, section->graph);
    2929  }
    3030
Note: See TracChangeset for help on using the changeset viewer.