mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-12-01 09:49:42 +00:00
set _search_copy in segment so restoring using __setstate__ will have that attribute
This commit is contained in:
parent
b3e5005b56
commit
19b90e9305
@ -152,12 +152,12 @@ class DefaultSegment(object):
|
|||||||
self.verbose_name = verbose_name
|
self.verbose_name = verbose_name
|
||||||
self.page_size = -1
|
self.page_size = -1
|
||||||
self.map_width = 40
|
self.map_width = 40
|
||||||
self._search_copy = None
|
|
||||||
|
|
||||||
def set_raw(self, rawdata):
|
def set_raw(self, rawdata):
|
||||||
self.rawdata = rawdata
|
self.rawdata = rawdata
|
||||||
self.data = rawdata.get_data()
|
self.data = rawdata.get_data()
|
||||||
self.style = rawdata.get_style()
|
self.style = rawdata.get_style()
|
||||||
|
self._search_copy = None
|
||||||
|
|
||||||
def get_raw(self):
|
def get_raw(self):
|
||||||
return self.rawdata
|
return self.rawdata
|
||||||
|
Loading…
Reference in New Issue
Block a user