Changeset 94b458 for molecuilder/src


Ignore:
Timestamp:
May 26, 2008, 1:20:10 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
23c207
Parents:
71dc4e
Message:

BUGFIX: line.erase() threw exception with illegal line end

Found by test case (molecuilder test 3), just do it the more complicated way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.cpp

    r71dc4e r94b458  
    21222122
    21232123  // open TEFactors file
    2124   line.erase(ende, line.end());
     2124  line = path;
     2125  line.append("/");
     2126  line += FRAGMENTPREFIX;
     2127  ende = line.end();
    21252128  line += TEFACTORSFILE;
    21262129  output.open(line.c_str(), ios::out);
Note: See TracChangeset for help on using the changeset viewer.