commit b15d2d06de30ef0f95cc2471b4dcd15e75eef712
parent ac08dcaf674c56ac39c5c2b71051d39a3e1b4994
Author: paulnasca <paulnasca>
Date: Sun, 22 Aug 2004 17:47:51 +0000
*** empty log message ***
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/Params/Presets.C b/src/Params/Presets.C
@@ -45,7 +45,9 @@ void Presets::copy(const char *name){
char type[MAX_PRESETTYPE_SIZE];
strcpy(type,this->type);
if (nelement!=-1) strcat(type,"n");
- if (strstr(type,"Plfo")!=NULL) strcpy(type,"Plfo");
+ if (name==NULL) {
+ if (strstr(type,"Plfo")!=NULL) strcpy(type,"Plfo");
+ };
xml->beginbranch(type);
if (nelement==-1) add2XML(xml);
@@ -63,7 +65,9 @@ void Presets::paste(int npreset){
char type[MAX_PRESETTYPE_SIZE];
strcpy(type,this->type);
if (nelement!=-1) strcat(type,"n");
- if (strstr(type,"Plfo")!=NULL) strcpy(type,"Plfo");
+ if (npreset==0){
+ if (strstr(type,"Plfo")!=NULL) strcpy(type,"Plfo");
+ };
XMLwrapper *xml=new XMLwrapper();
if (npreset==0){