X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsim%2Farray2dfile.cpp;h=b3538da0b79f610a325c0e7c729884c325fadb70;hb=7a50ad8860d015c3e06038475929bc62011b561c;hp=36adfbaa0017fb1447322e1a32bcbfbf2c773ce1;hpb=849eba23462dc48c9284b01ba738321ec25689b4;p=ctsim.git diff --git a/libctsim/array2dfile.cpp b/libctsim/array2dfile.cpp index 36adfba..b3538da 100644 --- a/libctsim/array2dfile.cpp +++ b/libctsim/array2dfile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.cpp,v 1.17 2000/12/14 20:59:30 kevin Exp $ +** $Id: array2dfile.cpp,v 1.19 2000/12/16 02:31:00 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -558,12 +558,12 @@ void Array2dFile::labelsCopy (Array2dFile& copyFile, const char* const pszId) { string id; - if (idStr) + if (pszId) id = pszId; for (unsigned int i = 0; i < copyFile.getNumLabels(); i++) { Array2dFileLabel l (copyFile.labelGet (i)); string lstr = l.getLabelString(); - lstr = idStr + lstr; + lstr = id + lstr; l.setLabelString (lstr); labelAdd (l); }