Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
dwg import: handle filenames with utf8 characters
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/app/dwg/qgsdwgimporter.cpp
|
@@ -623,7 +623,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa |
|
|
if ( fi.suffix().toLower() == "dxf" ) |
|
|
{ |
|
|
//loads dxf |
|
|
QScopedPointer<dxfRW> dxf( new dxfRW( drawing.toUtf8() ) ); |
|
|
QScopedPointer<dxfRW> dxf( new dxfRW( drawing.toLocal8Bit() ) ); |
|
|
if ( !dxf->read( this, false ) ) |
|
|
{ |
|
|
result = DRW::BAD_UNKNOWN; |
|
@@ -632,7 +632,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa |
|
|
else if ( fi.suffix().toLower() == "dwg" ) |
|
|
{ |
|
|
//loads dwg |
|
|
QScopedPointer<dwgR> dwg( new dwgR( drawing.toUtf8() ) ); |
|
|
QScopedPointer<dwgR> dwg( new dwgR( drawing.toLocal8Bit() ) ); |
|
|
if ( !dwg->read( this, false ) ) |
|
|
{ |
|
|
result = dwg->getError(); |
|
|