Commit e729b0890117f6f80b4cf27878caa461d5457942
1 parent
bf772c73
add hyphens to string in string card constructor
Showing
1 changed file
with
2 additions
and
2 deletions
src/fits/GFitsHeaderCard.cpp
| ... | ... | @@ -80,7 +80,7 @@ GFitsHeaderCard::GFitsHeaderCard(const std::string& keyname, |
| 80 | 80 | |
| 81 | 81 | // Set members |
| 82 | 82 | this->keyname(keyname); |
| 83 | - this->value(value); | |
| 83 | + this->value("'"+value+"'"); | |
| 84 | 84 | this->comment(comment); |
| 85 | 85 | |
| 86 | 86 | // Return |
| ... | ... | @@ -243,7 +243,7 @@ void GFitsHeaderCard::value(const std::string& value) |
| 243 | 243 | if (m_value[m_value.length()-1] != '\x27') |
| 244 | 244 | m_value += "'"; |
| 245 | 245 | } |
| 246 | - | |
| 246 | + | |
| 247 | 247 | // Return |
| 248 | 248 | return; |
| 249 | 249 | } | ... | ... |