Ignore:
Timestamp:
Nov 27, 2006, 7:35:33 PM (14 years ago)
Author:
Eugene Romanenko
Message:

better place for ask about ps file location, not in thread

File:
1 edited

Legend:

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

    r162 r164  
    309309
    310310    char tmpps[ CCHMAXPATH ] = "";
    311     if ( psetup->psToFile )
    312     {
    313         strcpy( tmpps, title );
    314         char *pointpos = strrchr( tmpps, '.' );
    315         if ( pointpos != NULL ) {
    316             *pointpos = 0;
    317         }
    318         strcat( tmpps, ".ps" );
    319 
    320         PFILEDLG fd = new FILEDLG;
    321         memset( fd, 0, sizeof( FILEDLG ) );
    322         fd->cbSize = sizeof( FILEDLG );
    323         fd->fl = FDS_CENTER | FDS_SAVEAS_DIALOG;
    324         strcpy( fd->szFullFile, tmpps );
    325         WinFileDlg( HWND_DESKTOP, hFrame, fd );
    326         if ( fd->lReturn == DID_OK ) {
    327             strcpy( tmpps, fd->szFullFile );
    328             delete fd;
    329         }
    330         else {
    331             delete fd;
    332             return true;
    333         }
     311    if ( psetup->psToFile ) {
     312        strcpy( tmpps, psetup->psFile );
    334313    }
    335314    else {
Note: See TracChangeset for help on using the changeset viewer.