diff options
author | Damjan Jovanovic <damjan@apache.org> | 2016-06-05 12:51:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-06 21:30:18 +0100 |
commit | b3f1afc28fa537e6d4ff15de457a4a9dc4af809e (patch) | |
tree | f8fae38863dbba4d3ac256417086fcce91673f1a /starmath/inc/smmod.hxx | |
parent | f88f6bcfce233c336c9025d466c5c2fb0b671de3 (diff) |
#i124867#: jpg options shows initially wrong estimated file size
File main/svtools/source/filter/exportdialog.cxx
ExportDialog::GetGraphicStream() creates the compressed file from which the
file size is obtained, calling GetFilterData() to obtain the properties used
to save it. GetFilterData() returns image properties, like JPEG colormode
and quality, PNG compression/interlacing/translucence, BMP color and RLE
coding, etc. In the case of JPEG, the quality is read from
maSbCompression.GetThumbPos().
The problem is that in ExportDialog::updateControls(),
maSbCompression.SetThumbPos() is called AFTER GetGraphicStream(), meaning
the stream is created with the old thumb position.
This patches it to call GetGraphicStream() later, immediately before using
that stream, so that its properties such as compression are updated first
and the size is calculated correctly.
Reported by: myspaces at hotmail dot fr
Patch by: me
(cherry picked from commit 48cf17d5fac7e77aa82caa454cd0f26cd10faaa0)
Diffstat (limited to 'starmath/inc/smmod.hxx')
0 files changed, 0 insertions, 0 deletions