diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-07-03 09:34:22 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-07-03 09:34:22 +0000 |
| commit | d9c3b46f2c4085fa74b3489719534577a032b528 (patch) | |
| tree | 58a57c8daf22104fc61f98af07bd68ffbbd8ea68 /src/gradient-chemistry.h | |
| parent | Tutorials. Forgot to install the png file... (diff) | |
| download | inkscape-d9c3b46f2c4085fa74b3489719534577a032b528.tar.gz inkscape-d9c3b46f2c4085fa74b3489719534577a032b528.zip | |
Create only single-stop gradients when using Fill-n-Stroke to convert solid to a swatch. Preserve CMS colors.
(bzr r9560)
Diffstat (limited to 'src/gradient-chemistry.h')
| -rw-r--r-- | src/gradient-chemistry.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gradient-chemistry.h b/src/gradient-chemistry.h index 3f72fa394..0c8d0afe7 100644 --- a/src/gradient-chemistry.h +++ b/src/gradient-chemistry.h @@ -42,9 +42,8 @@ SPGradient *sp_item_set_gradient (SPItem *item, SPGradient *gr, SPGradientType t /* * Get default normalized gradient vector of document, create if there is none */ - -SPGradient *sp_document_default_gradient_vector (SPDocument *document, guint32 color = 0); -SPGradient *sp_gradient_vector_for_object (SPDocument *doc, SPDesktop *desktop, SPObject *o, bool is_fill); +SPGradient *sp_document_default_gradient_vector( SPDocument *document, SPColor const &color, bool singleStop ); +SPGradient *sp_gradient_vector_for_object( SPDocument *doc, SPDesktop *desktop, SPObject *o, bool is_fill, bool singleStop = false ); void sp_object_ensure_fill_gradient_normalized (SPObject *object); void sp_object_ensure_stroke_gradient_normalized (SPObject *object); |
