GRAPHICS: MACGUI: Disable MacText with tables resizing

The problem is more complex than it appears, so, disabling this
before the release, because the current code is removing
tables on resize
This commit is contained in:
Eugene Sandulenko 2023-11-24 19:47:31 +01:00
parent 2fd005b001
commit 92b03145a2
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 14 additions and 0 deletions

View File

@ -1204,6 +1204,12 @@ void MacTextCanvas::setMaxWidth(int maxWidth, MacFontRun &defaultFormatting) {
for (uint i = 0; i < _text.size(); i++) {
row = i;
if (_text[i].table) {
processTable(i, maxWidth);
continue;
}
reshuffleParagraph(&row, &col, _defaultFormatting);
while (i < _text.size() - 1 && !_text[i].paragraphEnd)

View File

@ -303,6 +303,14 @@ void MacText::setMaxWidth(int maxWidth) {
return;
}
for (uint i = 0; i < _canvas._text.size(); i++) {
if (_canvas._text[i].table) {
// TODO
debug(0, "MacText::setMaxWidth(): Skipping resize for MacText with tables");
return;
}
}
// keep the cursor pos
int ppos = 0;
for (int i = 0; i < _cursorRow; i++)