"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/kdefrontend/spreadsheet/ExportSpreadsheetDialog.cpp" between
labplot-2.8.1.tar.gz and labplot-2.8.2.tar.gz

About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.

ExportSpreadsheetDialog.cpp  (labplot-2.8.1):ExportSpreadsheetDialog.cpp  (labplot-2.8.2)
skipping to change at line 378 skipping to change at line 378
} }
/*! /*!
called when the output format was changed. Adjusts the extension for the specified file. called when the output format was changed. Adjusts the extension for the specified file.
*/ */
void ExportSpreadsheetDialog::formatChanged(int index) { void ExportSpreadsheetDialog::formatChanged(int index) {
QStringList extensions; QStringList extensions;
extensions << ".txt" << ".bin" << ".tex" << ".fits" << ".db"; extensions << ".txt" << ".bin" << ".tex" << ".fits" << ".db";
QString path = ui->leFileName->text(); QString path = ui->leFileName->text();
int i = path.indexOf("."); int i = path.indexOf(".");
if (index != 1) { if (index != -1) {
if (i == -1) if (i == -1)
path = path + extensions.at(index); path = path + extensions.at(index);
else else
path = path.left(i) + extensions.at(index); path = path.left(i) + extensions.at(index);
} }
const Format format = Format(ui->cbFormat->itemData(ui->cbFormat->current Index()).toInt()); const Format format = Format(ui->cbFormat->itemData(ui->cbFormat->current Index()).toInt());
if (format == Format::LaTeX) { if (format == Format::LaTeX) {
ui->cbSeparator->hide(); ui->cbSeparator->hide();
ui->lSeparator->hide(); ui->lSeparator->hide();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)