1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

fix statemanater

This commit is contained in:
Lu Wang 2013-02-05 19:51:04 +08:00
parent 6d28bf74c2
commit 1d1d6cbfc1

View File

@ -48,7 +48,8 @@ public:
bool install(double new_value) {
if(equal(new_value, value))
return false;
return _install(new_value);
_install(new_value);
return true;
}
long long get_id (void) const { return id; }
@ -66,6 +67,7 @@ public:
protected:
// 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) {
value = new_value;