Skip to content

Commit

Permalink
Merge branch '1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Jul 25, 2017
2 parents 088a327 + 6ef5fa6 commit e8e9487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libtiled/varianttomapconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ SharedTileset VariantToMapConverter::toTileset(const QVariant &variant)
const QVariantMap grid = variantMap[QLatin1String("grid")].toMap();
const int tileOffsetX = tileOffset[QLatin1String("x")].toInt();
const int tileOffsetY = tileOffset[QLatin1String("y")].toInt();
const int columns = tileOffset[QLatin1String("columns")].toInt();
const int columns = variantMap[QLatin1String("columns")].toInt();
const QString bgColor = variantMap[QLatin1String("backgroundcolor")].toString();

if (tileWidth <= 0 || tileHeight <= 0 ||
Expand Down
4 changes: 2 additions & 2 deletions src/tiled/propertybrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ void PropertyBrowser::addTilesetProperties()

parametersProperty->setEnabled(mTilesetDocument);

QtVariantProperty *imageSourceProperty = addProperty(ImageSourceProperty, QVariant::Url, tr("Source"), parametersProperty);
QtVariantProperty *imageSourceProperty = addProperty(ImageSourceProperty, QVariant::String, tr("Source"), parametersProperty);
QtVariantProperty *tileWidthProperty = addProperty(TileWidthProperty, QVariant::Int, tr("Tile Width"), parametersProperty);
QtVariantProperty *tileHeightProperty = addProperty(TileHeightProperty, QVariant::Int, tr("Tile Height"), parametersProperty);
QtVariantProperty *marginProperty = addProperty(MarginProperty, QVariant::Int, tr("Margin"), parametersProperty);
Expand Down Expand Up @@ -815,7 +815,7 @@ void PropertyBrowser::addTileProperties()
QtVariantProperty *imageSourceProperty = addProperty(ImageSourceProperty,
filePathTypeId(),
tr("Image"), groupProperty);
// todo: find a new way to enable this file filter

imageSourceProperty->setAttribute(QLatin1String("filter"),
Utils::readableImageFormatsFilter());
imageSourceProperty->setEnabled(mTilesetDocument);
Expand Down

0 comments on commit e8e9487

Please sign in to comment.