Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Calligra
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Office
Calligra
Commits
9d452207
Commit
9d452207
authored
9 years ago
by
Tomas Mecir
Browse files
Options
Downloads
Patches
Plain Diff
fix csv import
BUG: 344718
parent
6aa20c28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
filters/sheets/csv/csvimport.cc
+4
-4
4 additions, 4 deletions
filters/sheets/csv/csvimport.cc
with
4 additions
and
4 deletions
filters/sheets/csv/csvimport.cc
+
4
−
4
View file @
9d452207
...
...
@@ -82,10 +82,10 @@ KoFilter::ConversionStatus CSVFilter::convert(const QByteArray& from, const QByt
Doc
*
ksdoc
=
static_cast
<
Doc
*>
(
document
);
// type checked above
if
(
ksdoc
->
mimeType
()
!=
"application/vnd.oasis.opendocument.spreadsheet"
)
{
kWarning
(
30501
)
<<
"Invalid document mimetype "
<<
ksdoc
->
mimeType
();
return
KoFilter
::
NotImplemented
;
}
//
if (ksdoc->mimeType() != "application/vnd.oasis.opendocument.spreadsheet") {
//
kWarning(30501) << "Invalid document mimetype " << ksdoc->mimeType();
//
return KoFilter::NotImplemented;
//
}
QFile
in
(
file
);
if
(
!
in
.
open
(
QIODevice
::
ReadOnly
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment