How to test draw page grid lines?
Regina Henschel
rb.henschel at t-online.de
Mon Jan 11 12:05:07 UTC 2021
Hi all,
I have tried a test in sc/ui/uicalc.cxx
But
ScModelObj* pModelObj = createDoc("tdf137083_PageGridInRTLSheet.ods");
does not call SdrPageView::DrawPageViewGrid() at all. And two times
dispatchCommand(mxComponent, ".uno:GridVisible", {}); does call it neither.
I thought, I could make a kind of screenshot. But when I generate a
bitmap by
ScDocShell* pDocSh =
dynamic_cast<ScDocShell*>(SfxObjectShell::GetShellFromComponent(mxComponent));
ScGridWindow* pActiveWin =
dynamic_cast<ScGridWindow*>(pDocSh->GetViewData()->GetActiveWin());
const ::BitmapEx aTempBitmap(pActiveWin->GetBitmapEx(aEmptyPoint,
pActiveWin->GetOutputSizePixel()));
then I get a entire black bitmap.
Does really nobody have an idea? Otherwise I will commit the patch
without unit test.
Kind regards
Regina
Regina Henschel schrieb am 08.01.2021 um 18:52:
> Hi all,
>
> I have a fix for bug "Grid does not work in RTL sheet"
> [https://bugs.documentfoundation.org/show_bug.cgi?id=137083]
> [https://gerrit.libreoffice.org/c/core/+/108989]
>
> But I have no idea how to test it. Error was, that the coordinates of
> the grid lines were wrongly calculated and so the lines were outside the
> sheet and thus not visible. (This is about the grid you can enable in
> View > Grid and Helplines, not about the lines between cells.)
>
> Any idea?
>
> Kind regards
> Regina
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libreoffice
>
More information about the LibreOffice
mailing list