https://bugs.documentfoundation.org/show_bug.cgi?id=105771

--- Comment #8 from Cor Nouws <[email protected]> ---
(In reply to Caolán McNamara from comment #7)
> gtk2 only. I believe the problem here is that when the dialog resizes it
> doesn't invalidate its contents, so the "old" drawing contents remain when
> the dialog is reused and resized.

The problem has been covered somehow in older LibreOffice /

> So, here's how you can fix this in your macro in
> Sub UpdateLstDocSoortenForCategory(sCat$)

Indeed. Thanks.
I applied the fix at a different place, since there are also cases where a
different document type in the same category has the same problem (I didn't
include that scenario in the test).

at ln 718 in Sub lstDocSoorten_Change ()

    yPosStart = yPos : yPosColumn1 = yPosStart: yPosColumn2 = yPosStart 
    End If
+    ' tdf#105771
+    with com.sun.star.awt.InvalidateStyle
+        PoDocDlg.getPeer().invalidate(.NOERASE)
+    end with
    ' place the controls for the fields/bookmarks
    For i = NDOCDATAFLDSTART to UBound (PsDocSoortNew())


Thanks again,
Cor

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to