예제 #1
0
void
GeneralGlyph::renameSIdRefs(const std::string& oldid, const std::string& newid)
{
  GraphicalObject::renameSIdRefs(oldid, newid);
  if (isSetReferenceId() && mReference == oldid) 
  {
    setReferenceId(newid);
  }
}
예제 #2
0
void
ReferenceGlyph::renameSIdRefs(const std::string& oldid, const std::string& newid)
{
  GraphicalObject::renameSIdRefs(oldid, newid);
  if (isSetReferenceId() && mReference == oldid) 
  {
    mReference = newid;
  }
  if (isSetGlyphId() && mGlyph == oldid)
  {
    mGlyph = newid;
  }
}