summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2020-06-21 22:42:54 +1000
committerTomaž Vajngerl <quikee@gmail.com>2020-06-29 21:59:18 +0200
commit49d6768483fbae8789d97512e78a00b860fbad60 (patch)
tree37b63e17d5be89a7a7dc9bd6c07170d2f6485bc5 /vcl/source
parent68541c1a1314be59554f71edeb607e6bcec4fdcf (diff)
tdf#74424 vcl: Flush() is implemented in OutputDevice so no need for type check
Change-Id: I12f177dadf9a637ab3ef2fa7d85fe96d1d141808 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96811 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/impanmvw.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/gdi/impanmvw.cxx b/vcl/source/gdi/impanmvw.cxx
index abdc376b2567..cf55483692cc 100644
--- a/vcl/source/gdi/impanmvw.cxx
+++ b/vcl/source/gdi/impanmvw.cxx
@@ -286,9 +286,7 @@ void ImplAnimView::draw( sal_uLong nPos, VirtualDevice* pVDev )
}
pDev.disposeAndClear();
-
- if( pRenderContext->GetOutDevType() == OUTDEV_WINDOW )
- static_cast<vcl::Window*>( pRenderContext.get() )->Flush();
+ pRenderContext->Flush();
}
}
}