Show
Ignore:
Timestamp:
06/05/06 11:16:50 (2 years ago)
Author:
jordi
Message:

The main window now shows the current zoom level on the tool bar and is manipulable, so a custom zoom level can be specified (inside the 400%-5.12% margins.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/IDocument.cxx

    r200 r201  
    12451245IDocument::setZoom (gdouble zoom) 
    12461246{ 
    1247     if ( ABS (zoom - m_Scale) > 0.00001 )     
     1247    if ( ABS (zoom - m_Scale) > 0.00001 ) 
    12481248    { 
    12491249        G_LOCK (JobRender); 
    1250         m_Scale = zoom; 
     1250        m_Scale = CLAMP (zoom, ZOOM_OUT_MAX, ZOOM_IN_MAX); 
    12511251        refreshCache (); 
    12521252        G_UNLOCK (JobRender);