X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3bfec747ddf7b27e6f41f0117cd5cd6755fe021..a2615ebc22a402b1badb46475f94ab6aa3a64018:/wxPython/src/msw/gdi.py diff --git a/wxPython/src/msw/gdi.py b/wxPython/src/msw/gdi.py index eda13bc5ec..9ab2cec48f 100644 --- a/wxPython/src/msw/gdi.py +++ b/wxPython/src/msw/gdi.py @@ -866,14 +866,14 @@ class wxBufferedDC(wxBufferedDCPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gdic.new_wxBufferedDC,_args,_kwargs) self.thisown = 1 - self._dc = _args[0] # save a ref so it won't be deleted before self + self._dc = _args[0] # save a ref so the other dc won't be deleted before self def wxBufferedDCInternalBuffer(*_args,**_kwargs): val = wxBufferedDCPtr(apply(gdic.new_wxBufferedDCInternalBuffer,_args,_kwargs)) val.thisown = 1 - val._dc = _args[0] # save a ref so it won't be deleted before self + val._dc = _args[0] # save a ref so the other dc won't be deleted before self return val