diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-07-29 19:35:08 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-08-15 15:02:01 +0300 |
commit | dd7bae378e6463f5a4125f7b51a41ab6c0407578 (patch) | |
tree | 2f32cf2ffdd5436e1a6de612b93e15dc35cc2eb8 | |
parent | 55f09f01069cdfbb4b366824916409b66ddc11f5 (diff) | |
download | subsurface-dd7bae378e6463f5a4125f7b51a41ab6c0407578.tar.gz |
Printing: fix wrong custom palette index
The custom palette index is defined by the CUSTOM directive, and it
should be used.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
-rw-r--r-- | qt-ui/templateedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/templateedit.cpp b/qt-ui/templateedit.cpp index 95e7ebac7..97627749d 100644 --- a/qt-ui/templateedit.cpp +++ b/qt-ui/templateedit.cpp @@ -121,7 +121,7 @@ void TemplateEdit::saveSettings() printOptions->p_template = "custom.html"; TemplateLayout::writeTemplate("custom.html", ui->plainTextEdit->toPlainText()); } - if (templateOptions->color_palette_index == 2) { + if (templateOptions->color_palette_index == CUSTOM) { custom_colors = templateOptions->color_palette; } } |