Skip to content

Commit

Permalink
fixed copy/paste problem (if complex cell structure)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2842 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x05andfe committed Jun 20, 2007
1 parent 7529f10 commit bc71be1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OMNotebook/OMNotebookQT4/cellcommands.cpp
Expand Up @@ -362,8 +362,8 @@ namespace IAEX
// create the new cell, if there exists a groupcell add the new cell to
// that groupcell.
Cell* newCell = factory->createCell( style.name() );
if( groupcell )
groupcell->addChild( newCell );
// if( groupcell )
// groupcell->addChild( newCell );


// set content of cell
Expand Down Expand Up @@ -437,6 +437,8 @@ namespace IAEX
// Add cell to document
if( !groupcell )
cursor->addBefore( newCell );
else //if there exists a groupcell add the new cell to that groupcell.
groupcell->addChild( newCell );

// set focus and readonly stuff (from old implementation, IA)
if(cursor->currentCell()->isClosed())
Expand Down

0 comments on commit bc71be1

Please sign in to comment.