diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-05-12 22:15:44 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-05-17 21:31:27 +0200 |
commit | d2aca9c946f5977779256e6a3c2a3a0e21a6ed08 (patch) | |
tree | 1bbf77778b4ea76eccf72de04fb93e865232dbf8 /vcl/source/outdev/outdevstate.cxx | |
parent | bc94fe8a7415cb0df0e613fb764f886f45a648e3 (diff) |
vcl: refactor by creating OutputDevice::ClearStack()
Change-Id: Ica4400cdb1e5c24dfb302426548ac976da802c74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94343
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/outdev/outdevstate.cxx')
-rw-r--r-- | vcl/source/outdev/outdevstate.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx index ccf92be1932d..a9ca52d9449b 100644 --- a/vcl/source/outdev/outdevstate.cxx +++ b/vcl/source/outdev/outdevstate.cxx @@ -225,6 +225,13 @@ sal_uInt32 OutputDevice::GetGCStackDepth() const return maOutDevStateStack.size(); } +void OutputDevice::ClearStack() +{ + sal_uInt32 nCount = GetGCStackDepth(); + while( nCount-- ) + Pop(); +} + void OutputDevice::EnableOutput( bool bEnable ) { mbOutput = bEnable; |