df-libreoffice:private/juergen/Tests

Last commit made on 2018-09-14
Get this branch:
git clone -b private/juergen/Tests https://git.launchpad.net/df-libreoffice
Members of The Document Foundation can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
private/juergen/Tests
Repository:
lp:df-libreoffice

Recent commits

c6bf755... by Thorsten Behrens <email address hidden>

Fix build

Followup to b6310c1e403b80e2c6b87f2cfc1ab9132ecd90e0

Change-Id: I83b52168a6a05f9bcc05e10bc75b748010295368

b6310c1... by Ilhan Yesil <email address hidden>

tdf#119016 Editing a read-only section shall popup a dialog

While processing the key input, an additional if statement for the
paste command (Ctrl+V) is added.

Change-Id: If205589256855422ac93f8a5ed8a1ee394ca9310
Reviewed-on: https://gerrit.libreoffice.org/58360
Tested-by: Jenkins
Reviewed-by: Michael Stahl <email address hidden>
(cherry picked from commit 66838c2418df4d016be0da0ef1c7e54934c03421)
Reviewed-on: https://gerrit.libreoffice.org/60269
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

1975961... by Michael Weghorn

kde5backend.cxx: Fix inverted logic leading to invalid write

Only write to 'pFakeArgv[2]' when 'aDisplay' is NON-empty.

Otherwise, the 'pFakeArgv' array only has size 2 and the write
is invalid.

(Found by valgrind while looking at another issue.)

Change-Id: I58aff6d25c8647bc6ef346af8ac09b0b0fc030b8
Reviewed-on: https://gerrit.libreoffice.org/60476
Reviewed-by: Julien Nabet <email address hidden>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <email address hidden>
(cherry picked from commit 2fdafe62ef3959ec34e05daf312088a8f0534d9a)
Reviewed-on: https://gerrit.libreoffice.org/60486
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

62f8996... by Samuel Mehrbrodt <email address hidden>

Fix duplicate string identifier

Change-Id: I42fc07ad591455afc635fef6eaf947a209709d0e

8ebdb3a... by Michael Stahl <email address hidden>

gdb pretty-printers: fix StringPrinterHelper for gdb 8.0

Latest gdb release "lazy_string" validates the array size:

  Traceback (most recent call last):
    File "/work/lo/master/solenv/gdb/libreoffice/util/string.py", line
29, in to_string
      return self.make_string(data, self.encoding, len)
    File "/work/lo/master/solenv/gdb/libreoffice/util/string.py", line
66, in make_string
      return data.lazy_string(encoding, length)
  gdb.error: Length is larger than array size.

rtl_uString has "sal_Unicode buffer[1];", which is a lie
as the real size is the same as "length".

Taking the address of "buffer" appears to avoid the exception.

Change-Id: I85710b1adfae584ba09c8d517e9b49b290e79d8a
(cherry picked from commit 205677c88cb01e2bbee278443867baed2c89e5fe)

d61ab7e... by Juergen Funk <email address hidden>

sw: tdf#119742 fix null pointer in SetCursorInHdFt

In SwWrtShell::ChangeHeaderOrFooter the ChgPageDesc destroys the frames
of the header, that's why GetCurrFrame returns null later.

Change-Id: I26915237c8b455a5b8ad0bbd5c2de38537dfef08
Reviewed-on: https://gerrit.libreoffice.org/60130
Reviewed-by: Michael Stahl <email address hidden>
Tested-by: Michael Stahl <email address hidden>
(cherry picked from commit 77d075facaf4fc8954666ad541ed14f75d964fba)

8d86210... by Thorsten Behrens <email address hidden>

curl: fix CVE-2017-1000254 & CVE-2018-14618/1000120

* still don't upgrade to new release, no idea how the new windows
  build system likes targeting Win XP which is still supported in 5.4

Change-Id: If9c235d2c3e1902f154cae570a9719945112fe33

7dc383a... by Armin Le Grand <email address hidden>

Support buffering SystemDependent GraphicData

Note: This is the backport to LO52bp version

This is a first step to allow buffering of system
dependent data, especially (but not only) for the
system-dependent implementations of graphic output.
For example, for B2DPolygon and Win output, it allows
buffering the Gdiplus::GraphicsPath instead of re-
creating it all the time.
To support that, the change includes forwarding the
current transformation to the renderers in SalGraphics.
The current state in VCL is to transform all and
everything to device coordinates at every single
paint.
I have currently started to do this for ::drawPolyLine
implementations. The fallbacks for all systems will
at the start of that method just transform the data
to device coordinates, so all works as before.
This may also be done for FilledPolygon paint in a later
step, but most urgent is FatLine painting.
An arrangement of shared_ptr/weak_ptr is used so that
either the instance buffering (in the example B2DPolygon)
or the instance managing it can delete it. The instance
managing it currently uses a 1s Timer and a cycle-lifetime
management, but that can be extended in the future
to e.g. include size hints, too.
The mechanism it designed to support multiple Data per
buffering element, e.g. for B2DPolygon at the same time
system-dependent instances of Gdiplus and Cairo can be
buffered, but also PDF-data.
This is achieved semi-automatic by using
typeid(class).hash_code() as key for organization.
The mechanism will be used for now at B2DPolygon, but
is not limited to. There is already a similar but less
general buffer (see GdiPlusBuffer) that can and will
be converted to use this new mechanism.

Added vcl/headless Cairo renderer to support given
ObjectToDevice transformation (not to transform given
B2DPolygon)
Added support for CairoPath buffered at B2DPolygon,
seems to work well. Need to do more tests

Moved usage to templates suggested by Noel Grandin
(Noel Grandin <email address hidden>), thanks for
these suggestions. Adapted Win usage to that, too.

Converted Win-specific GdiPlus BitmapBuffer to new
mechanism, works well. Checked, the manager holds
now a mix of bitmap and path data under Win

Added a cleanup mechanism to flush all buffered data
at DeInitVCL() using flushAll() at
SystemDependentDataBuffer

Adapted Linux-versions of ::drawPolyLine to support
PixelSnapHairline, for now in a simplified version
that still allows buffering. This will also be used
(and use buffering) for the Cairo-fallback in
X11SalGraphics

Change-Id: I88d7e438a20b96ddab7707050893bdd590c098c7
Reviewed-on: https://gerrit.libreoffice.org/59555
Tested-by: Armin Le Grand <email address hidden>
Reviewed-by: Armin Le Grand <email address hidden>
Reviewed-on: https://gerrit.libreoffice.org/60036
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

dc27b9f... by Michael Weghorn

tdf#119685 Fix infinite loop in gtk3_kde5 filepicker

Since 'string::find()' returns the position of the given
character in the string and that was passed as the amount of
characters to delete from the string, 'm_responseBuffer'
would always be a string starting with a newline character
afterwards, when this part of the code was reached.

Subsequent calls to 'Gtk3KDE5FilePickerIpc::readResponseLine'
therefore always returned an empty string and left
'm_responseBuffer' unchanged, resulting in the lambda function
inside 'readResponse' in 'gtk3_kde5_filepicker_ipc.hxx' to
loop infinitely.

While at it, make a little more explicit that 'it' is of type
'size_t' here.

Change-Id: I3b1c209f8307ab71465d9538a82616dff8656415
Reviewed-on: https://gerrit.libreoffice.org/60047
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <email address hidden>
(cherry picked from commit 1f5698ba8b62e62999b0efb363916a91bdd54c94)

38e5947... by Samuel Mehrbrodt <email address hidden>

tdf#109188 Always load documents read-only in SwOneExampleFrame

Should be no problem since 38a3743e0c5d52f9386f74097fd512d3133fbbe3

Reviewed-on: https://gerrit.libreoffice.org/40140
Tested-by: Jenkins <email address hidden>
Reviewed-by: Michael Stahl <email address hidden>
(cherry picked from commit bde72cdae1e7e001d5089c5284672c976b8e43df)

Conflicts:
 sw/source/uibase/utlui/unotools.cxx

Change-Id: I0ce47bc2bdaa900559a16baf25305066977caa6d