Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Hi Shivam,

[ First, please let's keep the discussion on the mailing list, not in
private. ]

On Mon, Jan 20, 2020 at 02:28:34PM +0530, Shivam Kumar Singh <shivamhere247@gmail.com> wrote:
Thanks for you reply .Following is the patch that I had submitted .
https://gerrit.libreoffice.org/c/core/+/86944

Also, Is it necessary to add unit test for all the bug fixes we do ?

It's a good idea to always consider it. More details here:

https://wiki.documentfoundation.org/Development/Unit_Tests

Regarding your change, I would try to create a new document, dispatch an
uno command that creates the shape and the use the internal API to
verify that the fill type is none. If you put a breakpoint on your
change and take a look at the backtrace, that might give you an idea
what command to dispatch. Existing tests that do something similar
already:

- sd/qa/unit/uiimpress.cxx:69 GetDispatcher()->Execute() on how to
  dispatch a command

- sd/qa/unit/import-tests.cxx:682 GetMergedItem() on how to get the fill
  style

Regards,

Miklos

Attachment: signature.asc
Description: Digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.