From: abd Date: Fri, 25 Aug 2006 12:04:44 +0000 (+0000) Subject: Fix bug 13266 X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=496a2af9c01e1bb8046a3bb4fed8203678bcd189;p=modules%2Fgui.git Fix bug 13266 Fix some misprints --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index ac9779ce7..303b7317f 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -1288,6 +1288,7 @@ void QtxWorkstack::splitterInfo( QSplitter* split, QString& info ) const } } info += ')'; + printf( QString( info + '\n' ).latin1() ); } @@ -1295,7 +1296,7 @@ void QtxWorkstack::splitterInfo( QSplitter* split, QString& info ) const void cutBrackets( QString& parameters ) { QChar c1 = parameters[0]; - QChar c2 = parameters.length()-1; + QChar c2 = parameters[int(parameters.length()-1)]; if ( !parameters.isEmpty() && c1 == '(' && c2 == ')' ) parameters = parameters.mid( 1, parameters.length()-2 ); } @@ -1327,7 +1328,7 @@ bool checkFormat( const QString& parameters ) QString params( parameters ); // 1. begins and ends with brackets QChar c1 = params[0]; - QChar c2 = params.length()-1; + QChar c2 = params[int(params.length()-1)]; bool ok = ( c1 == '(' && c2 == ')' ); if ( !ok ) return ok; ::cutBrackets( params ); @@ -1416,6 +1417,7 @@ QWidget* getView( const QWidget* parent, const QString& aName ) */ void QtxWorkstack::setSplitter( QSplitter* splitter, const QString& parameters, QMap< QSplitter*, QValueList >& sMap ) { + printf( QString(parameters+'\n').latin1() ); if ( !::checkFormat( parameters ) ) { printf( "\nInvalid format of workstack parameters. Positions of viewers can not be restored.\n" ); return;