ornamentedobj.cpp
changeset 160 72cc3873306a
parent 103 c810a11d11d9
child 177 494e8f40f0f7
     1.1 --- a/ornamentedobj.cpp	Thu Sep 01 15:35:18 2005 +0000
     1.2 +++ b/ornamentedobj.cpp	Mon Sep 05 11:56:31 2005 +0000
     1.3 @@ -199,13 +199,16 @@
     1.4  
     1.5  void OrnamentedObj::updateNoteFlag()
     1.6  {
     1.7 -	// text in NoteEditor has changed, notify MapEditor 
     1.8 -	mapEditor->setChanged();
     1.9 +	if (selected) 
    1.10 +	{
    1.11 +		// text in NoteEditor has changed, notify MapEditor 
    1.12 +		mapEditor->setChanged();
    1.13  
    1.14 -	// save text
    1.15 -	setNote( textEditor->getText() );
    1.16 +		// save text
    1.17 +		setNote( textEditor->getText() );
    1.18  	
    1.19 -	// save font   
    1.20 -	note.setFontHint (textEditor->getFontHint() );
    1.21 +		// save font   
    1.22 +		note.setFontHint (textEditor->getFontHint() );
    1.23 +	}	
    1.24  }
    1.25