Ignore:
Timestamp:
Jun 14, 2006, 4:23:50 PM (15 years ago)
Author:
Eugene Romanenko
Message:

fixed SYS3180 when plugins resides not in current dir. (closes #20, #29)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/docViewer.cpp

    r51 r54  
    605605    cyClient = SHORT2FROMMP( mp2 );
    606606
    607     double relativeScrollPos = (double)sVscrollPos / (double)sVscrollMax;
     607    double relativeScrollPos = ( sVscrollMax == 0 ) ? 0 :
     608                                    (double)sVscrollPos / (double)sVscrollMax;
    608609
    609610    adjustSize();
Note: See TracChangeset for help on using the changeset viewer.