ornamentedobj.cpp
changeset 174 3674e9236634
parent 103 c810a11d11d9
child 177 494e8f40f0f7
     1.1 --- a/ornamentedobj.cpp	Mon May 23 15:28:20 2005 +0000
     1.2 +++ b/ornamentedobj.cpp	Tue Jan 03 09:44:41 2006 +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