Changeset f31143a in tol


Ignore:
Timestamp:
Apr 27, 2011, 5:48:49 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
0c16934
Parents:
a5bc35a
Message:

Fixes #1184

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bgrammar/spfuninst.cpp

    ra5bc35a rf31143a  
    951951            BText newName = Text(namObj);
    952952            BText oldName = obj->Name();
    953 
    954             if (gra->FindVariable(newName)!=NIL) {
     953      BSyntaxObject* found = gra->FindVariable(newName);
     954            if (found && found->Level()==BGrammar::Level()) {
    955955                Error(I2("Cannot make ","No se puede hacer ") +
    956956                      "PutName : "+newName+
Note: See TracChangeset for help on using the changeset viewer.