Changeset d90b86a7 in OpenModelica for OMEdit/OMEditLIB/Element/Element.h


Ignore:
Timestamp:
2023-03-29T12:39:58+02:00 (13 months ago)
Author:
Adeel Asghar <adeel.asghar@…>
Parents:
0273588
Message:

Fix cut,copy and paste when instance api is used

Fixes #10442

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/Element/Element.h

    r3760be51 rd90b86a7  
    196196  };
    197197
    198   Element(ModelInstance::Component *pModelComponent, bool inherited, GraphicsView *pGraphicsView, bool createTransformation, QPointF position);
     198  Element(ModelInstance::Component *pModelComponent, bool inherited, GraphicsView *pGraphicsView, bool createTransformation, QPointF position, const QString &placementAnnotation);
    199199  Element(ModelInstance::Model *pModel, Element *pParentElement);
    200200  Element(ModelInstance::Component *pModelComponent, Element *pParentElement, Element *pRootParentElement);
     
    310310  Transformation mOldTransformation;
    311311private:
    312   ModelInstance::Component *mpModelComponent;
    313   ModelInstance::Model *mpModel;
     312  ModelInstance::Component *mpModelComponent = nullptr;
     313  ModelInstance::Model *mpModel = nullptr;
    314314  QString mName;
    315315  QString mClassName;
Note: See TracChangeset for help on using the changeset viewer.