diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-04-02 11:21:25 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-04-02 11:21:25 +0000 |
| commit | 61e99fec986469d2c2ab7fefafb3c7216729a049 (patch) | |
| tree | a0619be6c71d968a9f6d09f972597410b32ff493 /src | |
| parent | Increase precision for circle LPE so that the output is actually a circle :) (diff) | |
| download | inkscape-61e99fec986469d2c2ab7fefafb3c7216729a049.tar.gz inkscape-61e99fec986469d2c2ab7fefafb3c7216729a049.zip | |
Make BoolParam usable in boolean expressions directly
(bzr r5309)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/parameter/bool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h index 400f8cc47..3bf839af8 100644 --- a/src/live_effects/parameter/bool.h +++ b/src/live_effects/parameter/bool.h @@ -38,6 +38,9 @@ public: bool get_value() { return value; }; + inline operator bool() + { return value; }; + private: BoolParam(const BoolParam&); BoolParam& operator=(const BoolParam&); |
