From: <mrj...@us...> - 2007-12-19 06:43:38
|
Revision: 2359 http://tora.svn.sourceforge.net/tora/?rev=2359&view=rev Author: mrjohnson0 Date: 2007-12-18 22:43:35 -0800 (Tue, 18 Dec 2007) Log Message: ----------- widget doesn't have EditSplitter. Set null and check before sizing Modified Paths: -------------- branches/tora-1.4/tora/src/toworksheet.cpp branches/tora-1.4/tora/src/toworksheetwidget.cpp Modified: branches/tora-1.4/tora/src/toworksheet.cpp =================================================================== --- branches/tora-1.4/tora/src/toworksheet.cpp 2007-12-19 06:28:04 UTC (rev 2358) +++ branches/tora-1.4/tora/src/toworksheet.cpp 2007-12-19 06:43:35 UTC (rev 2359) @@ -1154,7 +1154,7 @@ t = t.mid(i); } - if (t.trimmed().length()) { + if (t.trimmed().length() && EditSplitter) { // move splitter if currently hidden QList<int> list = EditSplitter->sizes(); if(list[1] == 0) { Modified: branches/tora-1.4/tora/src/toworksheetwidget.cpp =================================================================== --- branches/tora-1.4/tora/src/toworksheetwidget.cpp 2007-12-19 06:28:04 UTC (rev 2358) +++ branches/tora-1.4/tora/src/toworksheetwidget.cpp 2007-12-19 06:43:35 UTC (rev 2359) @@ -83,19 +83,21 @@ const QString &, const toConnection::exception &, bool))); - ResultTab = NULL; - Plan = NULL; - CurrentTab = NULL; - Resources = NULL; - Statistics = NULL; - Logging = NULL; - LastLogItem = NULL; - StatTab = NULL; - Columns = NULL; - Refresh = NULL; - ToolMenu = NULL; - Visualize = NULL; - WaitChart = IOChart = NULL; + ResultTab = NULL; + Plan = NULL; + CurrentTab = NULL; + Resources = NULL; + Statistics = NULL; + Logging = NULL; + LastLogItem = NULL; + StatTab = NULL; + Columns = NULL; + Refresh = NULL; + ToolMenu = NULL; + Visualize = NULL; + WaitChart = NULL; + IOChart = NULL; + EditSplitter = NULL; workToolbar->addSeparator(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |