From 92fcff09535c3ab8943ca07c12154c6db9ce22d9 Mon Sep 17 00:00:00 2001 From: mkr Date: Fri, 3 Feb 2006 14:29:08 +0000 Subject: [PATCH] Fix for bug IPAL9974 : Table view doesn't work in this case. --- src/GraphEditor/DataFlowEditor_DataFlow.lxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/GraphEditor/DataFlowEditor_DataFlow.lxx b/src/GraphEditor/DataFlowEditor_DataFlow.lxx index d793893..24f63f6 100644 --- a/src/GraphEditor/DataFlowEditor_DataFlow.lxx +++ b/src/GraphEditor/DataFlowEditor_DataFlow.lxx @@ -476,7 +476,11 @@ inline bool GraphEditor::DataFlow::IsReadOnly() { inline long GraphEditor::DataFlow::LevelMax() { // if ( !IsValid( false ) ) { - if ( !IsExecutable() ) { +// if ( !IsExecutable() ) { + // mkr : IPAL9974 --> + int SubStreamGraphsNumber = 0 ; + if ( !IsValid() || !Graph()->Sort( SubStreamGraphsNumber ) ) { + // mkr : IPAL9974 <-- return 0 ; } return Graph()->LevelMax() ; @@ -484,7 +488,8 @@ inline long GraphEditor::DataFlow::LevelMax() { inline SUPERV::ListOfStrings * GraphEditor::DataFlow::LevelNodes(long aLevel ) { // if ( !IsValid( false ) ) { - if ( !IsExecutable() ) { +// if ( !IsExecutable() ) { + if ( !IsValid() ) { // mkr : IPAL9974 return ((SUPERV::ListOfStrings * ) NULL ) ; } return Graph()->LevelNodes( aLevel ) ; @@ -492,7 +497,11 @@ inline SUPERV::ListOfStrings * GraphEditor::DataFlow::LevelNodes(long aLevel ) { inline long GraphEditor::DataFlow::ThreadsMax() { // if ( !IsValid() ) { - if ( !IsExecutable() ) { +// if ( !IsExecutable() ) { + // mkr : IPAL9974 --> + int SubStreamGraphsNumber = 0 ; + if ( !IsValid() || !Graph()->Sort( SubStreamGraphsNumber ) ) { + // mkr : IPAL9974 <-- return 0 ; } return Graph()->ThreadsMax() ; -- 2.39.2