Invalidate canonical id unconditionally
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com> Change-Id: I061e34af1a1676e5bba5d476ea9e7ff5758744a1private/gokay/tab-translations
parent
0898e05e3a
commit
e5b7464bbf
|
@ -1705,12 +1705,7 @@ private:
|
|||
viewCount << " view" << (viewCount != 1 ? "s." : "."));
|
||||
|
||||
session->initWatermark();
|
||||
// Invalidate canonical ID for Draw and PDF files so that the slides
|
||||
// in the slide pane will render
|
||||
if (session->hasWatermark() || _loKitDocument->getDocumentType() == LOK_DOCTYPE_DRAWING)
|
||||
{
|
||||
invalidateCanonicalId(session->getId());
|
||||
}
|
||||
invalidateCanonicalId(session->getId());
|
||||
|
||||
return _loKitDocument;
|
||||
}
|
||||
|
|
|
@ -1366,7 +1366,7 @@ void TileCacheTests::requestTiles(std::shared_ptr<http::WebSocketSession>& socke
|
|||
// expected tile: part= width= height= tileposx= tileposy= tilewidth= tileheight=
|
||||
StringVector tokens(StringVector::tokenize(tile, ' '));
|
||||
LOK_ASSERT_EQUAL(std::string("tile:"), tokens[0]);
|
||||
LOK_ASSERT_EQUAL(0, std::stoi(tokens[1].substr(std::string("nviewid=").size())));
|
||||
LOK_ASSERT_EQUAL(1000, std::stoi(tokens[1].substr(std::string("nviewid=").size())));
|
||||
LOK_ASSERT_EQUAL(part, std::stoi(tokens[2].substr(std::string("part=").size())));
|
||||
LOK_ASSERT_EQUAL(pixTileSize,
|
||||
std::stoi(tokens[3].substr(std::string("width=").size())));
|
||||
|
|
Loading…
Reference in New Issue