Changeset c02c817 in tol


Ignore:
Timestamp:
May 12, 2009, 8:10:21 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
9b4d7dc
Parents:
7046b67
Message:

Ensuring nameBlock_ is still assigned

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/set_type/set.cpp

    r7046b67 rc02c817  
    353353//--------------------------------------------------------------------
    354354{
    355   if(nameBlock_)
     355  if(nameBlock_ && nameBlock_->EnsureIsAssigned())
    356356  {
    357357    Error(I2("Cannot access to NameBlock members with operator ",
    … …  
    483483//--------------------------------------------------------------------
    484484{
    485   if(nameBlock_)
     485  if(nameBlock_ && nameBlock_->EnsureIsAssigned())
    486486  {
    487487    Error(I2("Cannot access to NameBlock members with operator ",
    … …  
    523523          }
    524524  }
    525   else if(nameBlock_)
     525  else if(nameBlock_ && nameBlock_->EnsureIsAssigned())
    526526  {
    527527    Error(I2("Cannot access to NameBlock members with ",
    … …  
    556556  BText txt;
    557557  BText end;
    558   if(nameBlock_) { txt = "NameBlock [["; end = "]]"; } else
     558  if(nameBlock_&& nameBlock_->EnsureIsAssigned())
     559  {
     560    txt = "NameBlock [["; end = "]]";
     561  } else
    559562  if(Struct()) { txt = struct_->Name() + "("; end = ")"; } 
    560563  else { txt = "[[ "; end = "]]"; }
    … …  
    958961//--------------------------------------------------------------------
    959962{
    960   if(!nameBlock_)
     963  if(!nameBlock_ || !nameBlock_->EnsureIsAssigned())
    961964  {
    962965    errMsg = I2("Cannot access to member ",
Note: See TracChangeset for help on using the changeset viewer.