<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>Could you elaborate on what you see as the discrepancy between docs and implementation? The docs don't say whether</p>
<p>it's a shallow or a deep copy, so it looks to me that the implementation is within the bounds of the docs.</p>
<p><br>
</p>
<p>Plus it seems sensible to return a shallow copy, doesn't it?</p>
<p><br>
</p>
<p><br>
</p>
<p>Simon</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Development <development-bounces+simon.hausmann=qt.io@qt-project.org> on behalf of Tomasz Olszak <olszak.tomasz@gmail.com><br>
<b>Sent:</b> Monday, July 11, 2016 11:38:06 AM<br>
<b>To:</b> development@qt-project.org<br>
<b>Subject:</b> [Development] QImage::transformed returns shallow copy for QTransform::TxNone matrix type.</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
QImage:: transformed(const QTransform &matrix, Qt::TransformationMode mode = Qt::FastTransformation) docs:
<div><br>
"Returns a copy of the image that is transformed using the given transformation matrix and transformation mode."<br>
<br>
But if matrix.type() == QTransform::TxNone then shallow instead of deep copy is returned.<br>
<div><br>
</div>
<div>I'm happy to submit a fix but I don't know what is expected behaviour? Should implementation follow docs or docs or docs follow implementation here?</div>
<div><br>
</div>
<div>T.</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>