diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-10-25 05:33:24 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-10-25 05:33:24 +0000 |
| commit | 4da0f782dab1c1706be555e8de68552ab5e20a31 (patch) | |
| tree | 10aab4ecda45783ff1074cba8116dee39afc2573 /src/prefs-utils.cpp | |
| parent | preserve clip/mask for stroke-to-path also (diff) | |
| download | inkscape-4da0f782dab1c1706be555e8de68552ab5e20a31.tar.gz inkscape-4da0f782dab1c1706be555e8de68552ab5e20a31.zip | |
switch pref/repr utility methods to using long long ints; with
out it, we cannot even store an rgba32 color in an attribute\!
(bzr r1860)
Diffstat (limited to 'src/prefs-utils.cpp')
| -rw-r--r-- | src/prefs-utils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/prefs-utils.cpp b/src/prefs-utils.cpp index a0851a354..e365966bd 100644 --- a/src/prefs-utils.cpp +++ b/src/prefs-utils.cpp @@ -19,7 +19,7 @@ void -prefs_set_int_attribute(gchar const *path, gchar const *attr, gint value) +prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value) { Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); if (repr) { @@ -27,8 +27,8 @@ prefs_set_int_attribute(gchar const *path, gchar const *attr, gint value) } } -gint -prefs_get_int_attribute(gchar const *path, gchar const *attr, gint def) +long long int +prefs_get_int_attribute(gchar const *path, gchar const *attr, long long int def) { Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); if (repr) { @@ -41,12 +41,12 @@ prefs_get_int_attribute(gchar const *path, gchar const *attr, gint def) /** \brief Retrieves an int attribute guarding against screwed-up data; if the value is beyond limits, default is returned */ -gint -prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, gint def, gint min, gint max) +long long int +prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, long long int def, long long int min, long long int max) { Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); if (repr) { - gint const v = sp_repr_get_int_attribute(repr, attr, def); + long long int const v = sp_repr_get_int_attribute(repr, attr, def); if (v >= min && v <= max) { return v; } else { |
