Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 214364
Collapse All | Expand All

(-)koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.cpp (-7 / +2 lines)
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
(-)koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.h (-4 / +3 lines)
Lines 131-141 Link Here
131
		*/
131
		*/
132
		const QString text() const;
132
		const QString text() const;
133
		/**
133
		/**
134
		* Set the text of the cell. If asString is true, the text
134
		* Set the text of the cell. the text
135
		* will be handled as string else we try to parse the
135
		* will be handled as string
136
		* string to the expected value.
137
		*/
136
		*/
138
		bool setText(const QString& text, bool asString = false);
137
		bool setText(const QString& text);
139
138
140
		/**
139
		/**
141
		* Return the textcolor as RGB-value in the format "#RRGGBB".
140
		* Return the textcolor as RGB-value in the format "#RRGGBB".
142
141

Return to bug 214364