[Rezilla-commits] RezillaSource/Rezilla_Src/Editors/Plugin_editor CPluginEditorWindow.cp, 1.33, 1.3
Brought to you by:
bdesgraupes
From: Bernard D. <bde...@us...> - 2006-11-27 21:18:26
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9265 Modified Files: CPluginEditorWindow.cp Log Message: Ensure self refnum Index: CPluginEditorWindow.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor/CPluginEditorWindow.cp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- CPluginEditorWindow.cp 27 Nov 2006 20:40:16 -0000 1.33 +++ CPluginEditorWindow.cp 27 Nov 2006 21:18:17 -0000 1.34 @@ -13,6 +13,7 @@ #include "CPluginEditorWindow.h" #include "CPluginEditorDoc.h" #include "CRezillaPlugin.h" +#include "CRezillaApp.h" #include "CRezObj.h" #include "CWindowMenu.h" #include "RezillaConstants.h" @@ -237,9 +238,8 @@ // Create a Locked/Unlocked icon ControlRef lockRef; ControlButtonContentInfo info; -// const ResIDT ics8_Unlocked = 1500; -// const ResIDT ics8_Locked = 1501; - + StRezRefSaver saver( CRezillaApp::GetSelfRefNum() ); + boundsRect.left = kEditorLockIconLeft; boundsRect.right = boundsRect.left + kEditorLockIconSize; boundsRect.top = kEditorLockIconTop; @@ -274,6 +274,7 @@ HIViewRef viewRef = NULL; ControlRef lockRef; SInt16 resID; + StRezRefSaver saver( CRezillaApp::GetSelfRefNum() ); error = HIViewFindByID(HIViewGetRoot( GetMacWindow() ), ctrlID, &lockRef); |