[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:22:00 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=1563f41
The following commit has been merged in the master branch:
commit 1563f416d25fd6f8b235a6bf6d03da953b610592
Author: Lasath Fernando <kde at lasath.org>
Date: Sat Jun 23 11:32:56 2012 +1000
Fix CSS so only oversized images are scaled o
REVIEW:105313
---
filters/images/images-filter.cpp | 2 +-
tests/message-processor-basic-tests.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/filters/images/images-filter.cpp b/filters/images/images-filter.cpp
index 4d9cd70..b6c048e 100644
--- a/filters/images/images-filter.cpp
+++ b/filters/images/images-filter.cpp
@@ -56,7 +56,7 @@ void ImagesFilter::filterMessage (Message& message)
message.appendMessagePart(
QLatin1String("<img src='") %
QString::fromAscii(url.toEncoded()) %
- QLatin1String("' style='width:100%;' alt='Link is of an Image' />")
+ QLatin1String("' style='max-width:100%;' alt='Link is of an Image' />")
);
}
}
diff --git a/tests/message-processor-basic-tests.cpp b/tests/message-processor-basic-tests.cpp
index 15da0b1..9774c7c 100644
--- a/tests/message-processor-basic-tests.cpp
+++ b/tests/message-processor-basic-tests.cpp
@@ -144,7 +144,7 @@ void MessageProcessorBasicTests::testStrikethrough()
void MessageProcessorBasicTests::testImageEmbedGIF()
{
const char* message = "http://kde.org/images/teaser/jointhegame.gif";
- QString imgTag = QLatin1String("<img src='http://kde.org/images/teaser/jointhegame.gif' style='width:100%;' alt='Link is of an Image' />");
+ QString imgTag = QLatin1String("<img src='http://kde.org/images/teaser/jointhegame.gif' style='max-width:100%;' alt='Link is of an Image' />");
QVERIFY(s.getProcessedMessage(message).contains(imgTag));
}
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list