r16659 by jghali - #6577: deselecting all text doesn't work
scribus-commit
scribus-commit at lists.scribus.net
Sun Jun 12 00:32:22 UTC 2011
Author: jghali
Date: Sun Jun 12 00:32:22 2011
New Revision: 16659
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16659
Log:
#6577: deselecting all text doesn't work
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16659&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sun Jun 12 00:32:22 2011
@@ -5294,7 +5294,23 @@
void ScribusMainWindow::deselectAll()
{
- if (view!=NULL)
+ if (doc->appMode == modeEdit)
+ {
+ if (doc->m_Selection->count() <= 0)
+ return;
+ PageItem *currItem = doc->m_Selection->itemAt(0);
+ if (currItem->asTextFrame())
+ {
+ currItem->itemText.deselectAll();
+ doc->regionsChanged()->update(currItem->getBoundingRect());
+ }
+ else
+ {
+ doc->view()->Deselect(true);
+ doc->view()->requestMode(modeNormal);
+ }
+ }
+ else if (view != NULL)
view->Deselect(true);
}
More information about the scribus-commit
mailing list