<table><tr><td style="">dcaliste created this revision.<br />dcaliste added reviewers: leinir, danders, anthonyfieroni, Calligra: 3.0.<br />dcaliste added a project: Calligra: 3.0.<br />Herald added a subscriber: Calligra-Devel-list.<br />dcaliste requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15679">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, KPrNotes is using the text shape and the picture shape in its creator method (see line 67 and line 78). As a consequence, in a presentation, when creating a new page in KPrDocument.cpp#171, the page creation itself is creating a KPrNotes (see KPrPage.cpp#56) and finally if one of the two shape plugins is not compiled, the Q_ASSERT() will catch the non existing shape, at best, or if compiled with QT_NO_DEBUG, the program will crash.</p>

<p>As PART_WORD is depending on PLUGIN_TEXTSHAPE, I'm modifying the depency tree to add PLUGIN_TEXTSHAPE and PLUGIN_PICTURESHAPE for PART_STAGE.</p>

<p>Compiling then plugins/pictureshape, I took the opportunity to update two function calls in QMouseEvent.</p>

<p>Maybe it would be nice to replace the Q_ASSERT with an if (factory) {} and put a warning in the else part in case of a wrong installation and plugins are missing. What do you think ?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R8 Calligra</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15679">https://phabricator.kde.org/D15679</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CalligraProducts.cmake<br />
plugins/pictureshape/CropWidget.cpp</div></div></div><br /><div><strong>To: </strong>dcaliste, leinir, danders, anthonyfieroni, Calligra: 3.0<br /><strong>Cc: </strong>Calligra-Devel-list, dcaliste, cochise, vandenoever<br /></div>