X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fif2img.cpp;fp=src%2Fif2img.cpp;h=85237a700c13fd07158417e372787d1791dffe38;hp=6971fbbbab5c92c91a5806184e84a4d209f0b9d3;hb=f4a23943110823118f35756dd41fbd6707f04511;hpb=b5857e74e5735455b5ef11cbea5044ae7b2e8a0d diff --git a/src/if2img.cpp b/src/if2img.cpp index 6971fbb..85237a7 100644 --- a/src/if2img.cpp +++ b/src/if2img.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: if2img.cpp,v 1.4 2000/06/13 16:20:31 kevin Exp $ +** $Id: if2img.cpp,v 1.5 2000/06/17 20:12:15 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 @@ -292,16 +292,14 @@ if2img_main (int argc, char *const argv[]) for (int i = 0; i < nlabels; i++) { Array2dFileLabel label; im.labelRead (label, i); - string str; - label.getDateString (str); if (label.getLabelType() == Array2dFileLabel::L_HISTORY) { cout << "History: " << label.getLabelString() << endl; cout << " calc time = " << label.getCalcTime() << " secs" << endl; - cout << " Timestamp = " << str << endl; + cout << " Timestamp = " << label.getDateString() << endl; } else if (label.getLabelType() == Array2dFileLabel::L_USER) { cout << "Note: " << label.getLabelString() << endl; - cout << " Timestamp = %s" << str << endl; + cout << " Timestamp = %s" << label.getDateString() << endl; } } }