File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ TFormPreview = class(TForm)
8686 procedure CommandCreated (const Sender: TUIRibbon; const Command: TUICommand);
8787 private
8888 { Private declarations }
89- FInstance: THandle;
9089 FDocument: TRibbonDocument;
9190 FXmlDoc: TXmlDocument;
9291 FAllApplicationModes: Cardinal;
@@ -174,7 +173,7 @@ constructor TFormPreview.Create(const Instance: THandle;
174173 const Document: TRibbonDocument);
175174begin
176175 inherited Create(nil );
177- FInstance := Instance;
176+ Ribbon.ResourceInstance := Instance;
178177 FDocument := Document;
179178 FCommandMap := TDictionary<String, Cardinal>.Create;
180179 FGalleryCommand := TUICommandAnchor.Create(Ribbon, 50001 );
@@ -192,7 +191,7 @@ constructor TFormPreview.Create(const Instance: THandle;
192191
193192destructor TFormPreview.Destroy;
194193begin
195- FreeLibrary(FInstance );
194+ FreeLibrary(Ribbon.ResourceInstance );
196195 FXmlDoc.Free;
197196 FCommandMap.Free;
198197 inherited ;
You can’t perform that action at this time.
0 commit comments