diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-03-23 22:56:53 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-06-27 16:07:20 +0200 |
commit | 374a76adc567ad9fe4fa09099f7038c0f388a28e (patch) | |
tree | efa4f00a0ede1a67eeee4404a60a47a0b2d789c4 /forms/source | |
parent | 0acac1a2741d47b98ae600800e2db0e7a5fb3efe (diff) |
vcl: Remove graph. reader context from {Imp}Graph and GraphicReader
This removes the mpContext member variable from ImpGraph, which
also make {Get,Set}ReaderContext on Graphic obsolete and is also
removed. GraphicFilter and other code is adjusted and simplified.
Change-Id: Icd1927d7b1bd4624b523d0f49a4343911ec6cd0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165214
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/imgprod.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index bec815b91343..47f9f13e3425 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -125,7 +125,7 @@ void ImageProducer::setImage( css::uno::Reference< css::io::XInputStream > const void ImageProducer::NewDataAvailable() { - if( ( GraphicType::NONE == moGraphic->GetType() ) || moGraphic->GetReaderContext() ) + if (GraphicType::NONE == moGraphic->GetType()) startProduction(); } @@ -138,11 +138,11 @@ void ImageProducer::startProduction() bool bNotifyEmptyGraphics = false; // valid stream or filled graphic? => update consumers - if( mpStm || ( moGraphic->GetType() != GraphicType::NONE ) ) + if (mpStm || moGraphic->GetType() != GraphicType::NONE) { // if we already have a graphic, we don't have to import again; // graphic is cleared if a new Stream is set - if( ( moGraphic->GetType() == GraphicType::NONE ) || moGraphic->GetReaderContext() ) + if (moGraphic->GetType() == GraphicType::NONE) { if ( ImplImportGraphic( *moGraphic ) ) maDoneHdl.Call( &*moGraphic ); |