Lines 174-185
Link Here
|
174 |
return m_cell->text(); |
174 |
return m_cell->text(); |
175 |
} |
175 |
} |
176 |
|
176 |
|
177 |
bool Cell::setText(const QString& text, bool asString) { |
177 |
bool Cell::setText(const QString& text) { |
178 |
|
|
|
179 |
//FIXME: there is some problem with asString parameter, when it's set |
180 |
//to true KSpread says: ASSERT: "f" in Dependencies.cpp (621) |
181 |
//kspread: Cell at row 6, col 1 marked as formula, but formula is NULL |
182 |
|
183 |
KSpread::ProtectedCheck prot; |
178 |
KSpread::ProtectedCheck prot; |
184 |
prot.setSheet (m_sheet); |
179 |
prot.setSheet (m_sheet); |
185 |
prot.add (QPoint (m_col, m_row)); |
180 |
prot.add (QPoint (m_col, m_row)); |
Lines 189-195
Link Here
|
189 |
KSpread::DataManipulator *dm = new KSpread::DataManipulator (); |
184 |
KSpread::DataManipulator *dm = new KSpread::DataManipulator (); |
190 |
dm->setSheet (m_sheet); |
185 |
dm->setSheet (m_sheet); |
191 |
dm->setValue (text); |
186 |
dm->setValue (text); |
192 |
dm->setParsing (!asString); |
187 |
dm->setParsing (true); |
193 |
dm->add (QPoint (m_col, m_row)); |
188 |
dm->add (QPoint (m_col, m_row)); |
194 |
dm->execute (); |
189 |
dm->execute (); |
195 |
|
190 |
|