Changeset a3ef643 in tol


Ignore:
Timestamp:
Jan 18, 2011, 10:00:49 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
490da83
Parents:
a6dac944
Message:

change in order to allow to load old BSR OIS files

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3061 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/OIS/oisloader.cpp

    ra6dac944 ra3ef643  
    12831283              if(!cls)
    12841284              {
    1285                 return(NullError(
    1286                   I2("Cannot load from OIS NameBlock ","No se puede cargar del OIS NameBlock ")+
    1287                   name+
    1288                   I2("due to ascent Class ","Debido a que su ascendiente Class ")+
    1289                   className+I2(" doesn't exist"," no existe")));
     1285                if(className.BeginWith("StdLib::"))
     1286                {
     1287                  int len = className.Length();
     1288                  className = className.SubString(8,len-1);
     1289                  cls = FindClass(className,1);
     1290                }
     1291                if(!cls)
     1292                {
     1293                  return(NullError(
     1294                    I2("Cannot load from OIS NameBlock ","No se puede cargar del OIS NameBlock ")+
     1295                    name+
     1296                    I2("due to ascent Class ","Debido a que su ascendiente Class ")+
     1297                    className+I2(" doesn't exist"," no existe")));
     1298                }
    12901299              }
    12911300              x.PutClass(cls);
Note: See TracChangeset for help on using the changeset viewer.