Removing a memo object leaves phantom object with no name.
Original Reporter info from Mantis: Eric Cotting
-
Reporter name: Eric Cotting
Original Reporter info from Mantis: Eric Cotting
- Reporter name: Eric Cotting
Description:
I have a report Designer in my application. Using a firebird 2.5 database I store the report template to a blob field using the save to stream functionality. When I put a memo object on the report, edit it and save the report no problem. If I reopen the report and delete the Memo object and save - LazReports retains the object with no name, not visible, height = 0 and width = 0. Steps to reproduce holds the Object after delete and Additional Information holds the Before delete object.
This is causing issues when attempting to delete other objects on the report because an exception is raised which does not allow me to save any changes. All occurrences of the "Deleted" object get sorted to the top of the report object view combobox. They can be removed if I am careful which object is highlighed but they come back the minute I need to delete another.
Steps to reproduce:
<Object29>
<Name Value=""/>
<ClassName Value="TfrMemoView"/>
<Visible Value="False"/>
<Typ Value="gtMemo"/>
<StreamMode Value="0"/>
<Size>
<Left Value="0"/>
<Top Value="0"/>
<Width Value="0"/>
<Height Value="0"/>
</Size>
<Flags Value="3"/>
<FillColor Value="clNone"/>
<Frames>
<FrameColor Value="clBlack"/>
<FrameStyle Value="frsSolid"/>
<FrameWidth Value="0"/>
<FrameBorders Value=""/>
<Restrictions Value=""/>
</Frames>
<Data>
<Format Value="558"/>
<FormatStr Value=""/>
<Memo Value=""/>
<Script Value=""/>
<GapX Value="0"/>
<GapY Value="0"/>
<OnClick Value=""/>
<OnMouseEnter Value=""/>
<OnMouseLeave Value=""/>
<DetailReport Value=""/>
<ParagraphGap Value="0"/>
<LineSpacing Value="2"/>
</Data>
<Tag Value=""/>
<FURLInfo Value=""/>
<Font>
<Name Value=""/>
<Size Value="163125872"/>
<Color Value="$09B91A70"/>
<Charset Value="96"/>
<Style Value=""/>
</Font>
<Highlight>
<FontStyle Value="2"/>
<FontColor Value="clBlack"/>
<FillColor Value="clWhite"/>
<HighlightStr Value=""/>
</Highlight>
<Alignment Value="taLeftJustify"/>
<Layout Value="tlTop"/>
<Angle Value="0"/>
<Justify Value="False"/>
<Cursor Value="0"/>
</Object29>
Additional information:
<Object29>
<Name Value="Memo3"/>
<ClassName Value="TfrMemoView"/>
<Visible Value="True"/>
<Typ Value="gtMemo"/>
<StreamMode Value="0"/>
<Size>
<Left Value="472"/>
<Top Value="144"/>
<Width Value="96"/>
<Height Value="18"/>
</Size>
<Flags Value="3"/>
<FillColor Value="clNone"/>
<Frames>
<FrameColor Value="clBlack"/>
<FrameStyle Value="frsSolid"/>
<FrameWidth Value="1"/>
<FrameBorders Value=""/>
<Restrictions Value=""/>
</Frames>
<Data>
<Format Value="558"/>
<FormatStr Value=""/>
<Memo Value="test
"/>
<Script Value=""/>
<GapX Value="0"/>
<GapY Value="0"/>
<OnClick Value=""/>
<OnMouseEnter Value=""/>
<OnMouseLeave Value=""/>
<DetailReport Value=""/>
<ParagraphGap Value="0"/>
<LineSpacing Value="2"/>
</Data>
<Tag Value=""/>
<FURLInfo Value=""/>
<Font>
<Name Value="helvetica [urw]"/>
<Size Value="10"/>
<Color Value="clBlack"/>
<Charset Value="0"/>
<Style Value=""/>
</Font>
<Highlight>
<FontStyle Value="2"/>
<FontColor Value="clBlack"/>
<FillColor Value="clWhite"/>
<HighlightStr Value=""/>
</Highlight>
<Alignment Value="taLeftJustify"/>
<Layout Value="tlTop"/>
<Angle Value="0"/>
<Justify Value="False"/>
<Cursor Value="0"/>
</Object29>
Mantis conversion info:
- Mantis ID: 30206
- OS: Windows 10
- Version: 1.6
- Fixed in version: 1.7 (SVN)
- Fixed in revision: 52434 (#ea8917f4)
- Target version: 1.6.2