diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-04-01 14:01:02 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2012-04-01 14:01:02 +0000 |
| commit | 96103f1a7a1516f1137788f6a4e50daba1248b36 (patch) | |
| tree | ca9213cadda5f7518d392adda9cf0bd9ba3b9dfa /src | |
| parent | Fix for 627728 : newly-added gradient node by dbl click set active (diff) | |
| download | inkscape-96103f1a7a1516f1137788f6a4e50daba1248b36.tar.gz inkscape-96103f1a7a1516f1137788f6a4e50daba1248b36.zip | |
fix XML output of guideline color
(this does not fix loading of guide color)
Fixed bugs:
- https://launchpad.net/bugs/823739
(bzr r11138)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-guide.cpp | 2 | ||||
| -rw-r--r-- | src/sp-guide.h | 2 | ||||
| -rw-r--r-- | src/ui/dialog/guides.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp index 6cdc75c41..6a71cf4f0 100644 --- a/src/sp-guide.cpp +++ b/src/sp-guide.cpp @@ -440,7 +440,7 @@ void sp_guide_set_normal(SPGuide &guide, Geom::Point const normal_to_line, bool */ } -void sp_guide_set_color(SPGuide &guide, const unsigned char r, const unsigned char g, const unsigned char b, bool const commit) +void sp_guide_set_color(SPGuide &guide, const unsigned r, const unsigned g, const unsigned b, bool const commit) { g_assert(SP_IS_GUIDE(&guide)); guide.color = (r << 24) | (g << 16) | (b << 8) | 0x7f; diff --git a/src/sp-guide.h b/src/sp-guide.h index 5d2a05791..319e12305 100644 --- a/src/sp-guide.h +++ b/src/sp-guide.h @@ -65,7 +65,7 @@ void sp_guide_delete_all_guides(SPDesktop *dt); void sp_guide_moveto(SPGuide &guide, Geom::Point const point_on_line, bool const commit); void sp_guide_set_normal(SPGuide &guide, Geom::Point const normal_to_line, bool const commit); void sp_guide_set_label(SPGuide &guide, const char* label, bool const commit); -void sp_guide_set_color(SPGuide &guide, const unsigned char r, const unsigned char g, const unsigned char b, bool const commit); +void sp_guide_set_color(SPGuide &guide, const unsigned r, const unsigned g, const unsigned b, bool const commit); void sp_guide_remove(SPGuide *guide); char *sp_guide_description(SPGuide const *guide, const bool verbose = true); diff --git a/src/ui/dialog/guides.cpp b/src/ui/dialog/guides.cpp index 088290b6f..ce21f9c6e 100644 --- a/src/ui/dialog/guides.cpp +++ b/src/ui/dialog/guides.cpp @@ -71,7 +71,7 @@ void GuidelinePropertiesDialog::showDialog(SPGuide *guide, SPDesktop *desktop) { void GuidelinePropertiesDialog::_colorChanged() { const Gdk::Color c = _color.get_color(); - char r = c.get_red()/257, g = c.get_green()/257, b = c.get_blue()/257; + unsigned r = c.get_red()/257, g = c.get_green()/257, b = c.get_blue()/257; //TODO: why 257? verify this! sp_guide_set_color(*_guide, r, g, b, true); } |
