mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
fix statemanater
This commit is contained in:
parent
6d28bf74c2
commit
1d1d6cbfc1
@ -48,7 +48,8 @@ public:
|
|||||||
bool install(double new_value) {
|
bool install(double new_value) {
|
||||||
if(equal(new_value, value))
|
if(equal(new_value, value))
|
||||||
return false;
|
return false;
|
||||||
return _install(new_value);
|
_install(new_value);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
long long get_id (void) const { return id; }
|
long long get_id (void) const { return id; }
|
||||||
@ -66,6 +67,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// this version of install does not check if value has been updated
|
// this version of install does not check if value has been updated
|
||||||
|
// return if a new entry has been created
|
||||||
bool _install(double new_value) {
|
bool _install(double new_value) {
|
||||||
value = new_value;
|
value = new_value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user