View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0018001 | Scribus | User Interface | public | 2026-10-10 12:16 | 2026-10-29 17:09 |
| Reporter | buttar | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | Linux | OS | Fedora Workstation | OS Version | 44 |
| Product Version | 1.7.4.svn | ||||
| Target Version | 1.7.5.svn | ||||
| Summary | 0018001: [patch] Improve document save-state tracking | ||||
| Description | - Currently, Scribus retains the unsaved `*` indicator even after Undo restores the last saved state. - Here are 2 small patches that make the indicator accurately follow Undo/Redo, including saved-state checkpoints, branching and history limits. - Includes correctness hardening, title-bar updates and Revert-state synchronisation ## dss1-saved-state-tracking-v1.10.patch - Introduces per-document saved-state checkpoints in Undo history. - Handles selective Undo, branching, history truncation and non-undoable changes (e.g. enable/disable snapping options). - Improves Undo/Redo completion reporting and transaction safety. ## dss2-saved-state-integration-v1.10.patch - Integrates saved-state tracking with Open, Save, Save As and Revert. - Synchronises title-bar indicators and Revert availability. - Hardens multi-document handling, non-undoable change detection and Undo-stack renaming. - Preserves special editing-mode captions and existing autosave semantics. | ||||
| Tags | #please_test | ||||
| Attached Files | dss1-saved-state-tracking-v1.10.patch (9,594 bytes)
Index: scribus/undostack.cpp
===================================================================
--- scribus/undostack.cpp (revision 27881)
+++ scribus/undostack.cpp (working copy)
@@ -28,6 +28,8 @@
#include "undoobject.h"
#include "undostack.h"
+#include <algorithm>
+
UndoStack::UndoStack(int maxSize) : m_maxSize(maxSize)
{
@@ -35,16 +37,19 @@
bool UndoStack::action(UndoState *state)
{
- qDeleteAll(m_redoActions);
+ for (UndoState* redoState : m_redoActions)
+ discardAction(redoState);
m_redoActions.clear();
m_undoActions.insert(m_undoActions.begin(), state);
+ ++m_actionRevision;
bool needsPopping = checkSize(); // only store maxSize_ amount of actions
return needsPopping;
}
-bool UndoStack::undo(uint steps, int objectId)
-{
+uint UndoStack::undo(uint steps, int objectId)
+{
+ uint moved = 0;
for (uint i = 0; i < steps && !m_undoActions.empty(); ++i)
{
UndoState *tmpUndoState = nullptr;
@@ -79,15 +84,17 @@
}
if (tmpUndoState)
{
+ ++moved;
m_redoActions.insert(m_redoActions.begin(), tmpUndoState); // push to the redo actions
tmpUndoState->undo();
}
}
- return true;
-}
-
-bool UndoStack::redo(uint steps, int objectId)
-{
+ return moved;
+}
+
+uint UndoStack::redo(uint steps, int objectId)
+{
+ uint moved = 0;
for (uint i = 0; i < steps && !m_redoActions.empty(); ++i)
{
UndoState *tmpRedoState = nullptr;
@@ -122,11 +129,12 @@
}
if (tmpRedoState)
{
+ ++moved;
m_undoActions.insert(m_undoActions.begin(), tmpRedoState); // push to the undo actions
tmpRedoState->redo();
}
}
- return true;
+ return moved;
}
uint UndoStack::size() const
@@ -166,12 +174,29 @@
{
if (!m_redoActions.empty()) // clear redo actions first
{
- delete m_redoActions.back();
+ discardAction(m_redoActions.back());
m_redoActions.pop_back();
}
else
{
- delete m_undoActions.back();
+ UndoState* oldest = m_undoActions.back();
+ if (m_savedStateValid)
+ {
+ auto saved = std::find(m_savedUndoActions.begin(), m_savedUndoActions.end(), oldest);
+ if (saved != m_savedUndoActions.end())
+ {
+ // This action is still applied and was already part of the
+ // saved state. Prune it from both lists: its effect remains
+ // in the document, so their relative state is unchanged.
+ m_savedUndoActions.erase(saved);
+ }
+ else
+ {
+ // An unsaved applied action can no longer be undone.
+ invalidateSavedState();
+ }
+ }
+ discardAction(oldest);
m_undoActions.pop_back();
}
}
@@ -185,6 +210,50 @@
qDeleteAll(m_redoActions);
m_undoActions.clear();
m_redoActions.clear();
+ invalidateSavedState();
+}
+
+void UndoStack::discardAction(UndoState* state)
+{
+ if (m_savedStateValid &&
+ std::find(m_savedUndoActions.begin(), m_savedUndoActions.end(), state) != m_savedUndoActions.end())
+ invalidateSavedState();
+ delete state;
+}
+
+void UndoStack::markSavedState()
+{
+ m_savedUndoActions = m_undoActions;
+ m_lastObservedRevision = m_actionRevision;
+ m_savedStateValid = true;
+}
+
+void UndoStack::invalidateSavedState()
+{
+ m_savedUndoActions.clear();
+ m_savedStateValid = false;
+}
+
+void UndoStack::noteDocumentChange()
+{
+ if (!m_savedStateValid)
+ return;
+ // A document change without a new Undo state cannot be proven
+ // reversible. Do not allow subsequent Undo to clear its dirty flag.
+ if (m_lastObservedRevision == m_actionRevision)
+ invalidateSavedState();
+ else
+ m_lastObservedRevision = m_actionRevision;
+}
+
+bool UndoStack::hasSavedState() const
+{
+ return m_savedStateValid;
+}
+
+bool UndoStack::isAtSavedState() const
+{
+ return m_savedStateValid && m_undoActions == m_savedUndoActions;
}
UndoState* UndoStack::getNextUndo(int objectId)
Index: scribus/undostack.h
===================================================================
--- scribus/undostack.h (revision 27881)
+++ scribus/undostack.h (working copy)
@@ -27,6 +27,7 @@
#ifndef UNDOSTACK_H
#define UNDOSTACK_H
+#include <cstdint>
#include <vector>
class UndoState;
@@ -47,9 +48,9 @@
bool action(UndoState *state);
/* undo number of steps actions (these will then become redo actions) */
- bool undo(uint steps, int objectId);
+ uint undo(uint steps, int objectId);
/* redo number of steps actions (these will then become undo actions) */
- bool redo(uint steps, int objectId);
+ uint redo(uint steps, int objectId);
/* number of actions stored in the stack mostly for testing */
uint size() const;
@@ -67,6 +68,15 @@
void clear();
+ // Save checkpoints are document-local and valid only while every saved
+ // action still belongs to this history. Selective undo is handled by
+ // comparing the full ordered list of applied actions, not its size.
+ void markSavedState();
+ void invalidateSavedState();
+ void noteDocumentChange();
+ bool hasSavedState() const;
+ bool isAtSavedState() const;
+
UndoState* getNextUndo(int objectId);
UndoState* getNextRedo(int objectId);
@@ -79,10 +89,17 @@
/* maximum amount of actions stored, 0 for no limit */
uint m_maxSize { 0 };
+ StateList m_savedUndoActions;
+ bool m_savedStateValid { false };
+ uint64_t m_actionRevision { 0 };
+ uint64_t m_lastObservedRevision { 0 };
/* returns true if an action was popped from the stack */
/* assures that we only hold the maxSize_ number of UndoStates */
bool checkSize();
+ // A checkpoint must never contain a pointer to a deleted UndoState:
+ // its address could subsequently be reused by an unrelated action.
+ void discardAction(UndoState* state);
friend class UndoManager; // UndoManager needs access to undoActions_ and redoActions_
// for updating the attached UndoGui widgets
Index: scribus/undomanager.cpp
===================================================================
--- scribus/undomanager.cpp (revision 27881)
+++ scribus/undomanager.cpp (working copy)
@@ -324,6 +324,37 @@
}
}
+void UndoManager::markSavedState()
+{
+ m_stacks[m_currentDoc].markSavedState();
+}
+
+void UndoManager::invalidateSavedState(const QString& stackName)
+{
+ auto it = m_stacks.find(stackName.isEmpty() ? m_currentDoc : stackName);
+ if (it != m_stacks.end())
+ it->invalidateSavedState();
+}
+
+void UndoManager::noteDocumentChange(const QString& stackName)
+{
+ auto it = m_stacks.find(stackName);
+ if (it != m_stacks.end())
+ it->noteDocumentChange();
+}
+
+bool UndoManager::hasSavedState(const QString& stackName) const
+{
+ auto it = m_stacks.constFind(stackName.isEmpty() ? m_currentDoc : stackName);
+ return it != m_stacks.constEnd() && it->hasSavedState();
+}
+
+bool UndoManager::isAtSavedState() const
+{
+ auto it = m_stacks.constFind(m_currentDoc);
+ return it != m_stacks.constEnd() && it->isAtSavedState();
+}
+
void UndoManager::action(UndoObject* target, UndoState* state, QPixmap *targetPixmap)
{
QPixmap *oldIcon = nullptr;
@@ -390,12 +421,16 @@
if (!m_undoEnabled)
return;
+ const QString stackName = m_currentDoc;
emit undoRedoBegin();
setUndoEnabled(false);
- m_stacks[m_currentDoc].undo(steps, m_currentUndoObjectId);
+ const uint moved = m_stacks[stackName].undo(steps, m_currentUndoObjectId);
setUndoEnabled(true);
- emit undoSignal(steps);
+ if (moved > 0)
+ emit undoSignal(static_cast<int>(moved));
emit undoRedoDone();
+ if (moved > 0)
+ emit undoRedoStateChanged(stackName);
setTexts();
}
@@ -404,12 +439,16 @@
if (!m_undoEnabled)
return;
+ const QString stackName = m_currentDoc;
emit undoRedoBegin();
setUndoEnabled(false);
- m_stacks[m_currentDoc].redo(steps, m_currentUndoObjectId);
+ const uint moved = m_stacks[stackName].redo(steps, m_currentUndoObjectId);
setUndoEnabled(true);
- emit redoSignal(steps);
+ if (moved > 0)
+ emit redoSignal(static_cast<int>(moved));
emit undoRedoDone();
+ if (moved > 0)
+ emit undoRedoStateChanged(stackName);
setTexts();
}
Index: scribus/undomanager.h
===================================================================
--- scribus/undomanager.h (revision 27881)
+++ scribus/undomanager.h (working copy)
@@ -225,6 +225,13 @@
/** clear the current undo stack */
void clearStack();
+
+ // Saved checkpoint of the active document's Undo history.
+ void markSavedState();
+ void invalidateSavedState(const QString& stackName = QString());
+ void noteDocumentChange(const QString& stackName);
+ bool hasSavedState(const QString& stackName = QString()) const;
+ bool isAtSavedState() const;
/**
* @brief Returns true if there are actions that can be undone otherwise returns false.
@@ -845,6 +852,11 @@
*/
void undoRedoDone();
+ // Emitted after document Undo/Redo completion, identifying the affected stack.
+ void undoRedoStateChanged(const QString& stackName);
+ // An outermost Undo transaction has committed or been cancelled.
+ void transactionClosed();
+
};
using Um = UndoManager;
Index: scribus/undotransaction.cpp
===================================================================
--- scribus/undotransaction.cpp (revision 27881)
+++ scribus/undotransaction.cpp (working copy)
@@ -72,6 +72,8 @@
{
UM->m_transactions.erase(UM->m_transactions.begin() + stackLevel);
}
+ if (!UM->isTransactionMode())
+ emit UM->transactionClosed();
return true;
default:
// do nothing;
@@ -148,6 +150,8 @@
delete tmps;
tmps = nullptr;
}
+ if (!UM->isTransactionMode())
+ emit UM->transactionClosed();
return true;
break;
case STATE_WILLFAIL:
dss2-saved-state-integration-v1.10.patch (10,727 bytes)
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (revision 27881)
+++ scribus/scribus.cpp (working copy)
@@ -400,6 +400,7 @@
m_objectSpecificUndo = false;
m_undoManager = UndoManager::instance();
+ connect(m_undoManager, SIGNAL(undoRedoStateChanged(QString)), this, SLOT(syncSavedStateAfterUndo(QString)));
PrefsContext *undoPrefs = m_prefsManager.prefsFile->getContext("undo");
m_undoManager->setUndoEnabled(undoPrefs->getBool("enabled", true));
m_tocGenerator = new TOCGenerator();
@@ -2079,8 +2080,9 @@
if (!docLoaded)
continue;
doc->setDocumentFileName(dia->recoverNames[i]);
+ m_undoManager->renameStack(doc->documentFileName());
doc->hasName = true;
- updateActiveWindowCaption(doc->documentFileName());
+ refreshDocumentModifiedUi();
outlinePalette->setDoc(doc);
if (outlinePalette->isVisible())
outlinePalette->BuildTree();
@@ -2126,7 +2128,8 @@
// Don's disturb user with "save?" dialog just after new doc
// doc changing should be rewritten maybe... maybe later...
doc->setModified(false);
- updateActiveWindowCaption(doc->documentFileName());
+ m_undoManager->markSavedState();
+ refreshDocumentModifiedUi();
}
else if (dia->tabSelected() == NewDocDialog::NewFromTemplateTab)
{
@@ -2209,7 +2212,8 @@
// Don't disturb user with "save?" dialog just after new doc
// doc changing should be rewritten maybe... maybe later...
doc->setModified(false);
- updateActiveWindowCaption(doc->documentFileName());
+ m_undoManager->markSavedState();
+ refreshDocumentModifiedUi();
}
if (docSet)
@@ -2361,6 +2365,8 @@
m_tocGenerator->setDoc(tempDoc);
}
m_undoManager->setUndoEnabled(true);
+ if (requiresGUI)
+ m_undoManager->markSavedState();
return tempDoc;
}
@@ -2645,7 +2651,6 @@
void ScribusMainWindow::SwitchWin()
{
- updateActiveWindowCaption(doc->documentFileName());
propertiesPalette->setDoc(doc);
contentPalette->setDoc(doc);
marksManager->setDoc(doc);
@@ -2676,8 +2681,6 @@
pagePalette->enablePalette(false);
else
{
- if (doc->isModified())
- slotDocCh(false);
pagePalette->enablePalette(true);
setPreviewToolbar();
}
@@ -2687,6 +2690,7 @@
scrMenuMgr->setMenuEnabled("Insert", setter);
scrMenuMgr->setMenuEnabled("ItemLayer", doc->layerCount() > 1);
appModeHelper->changeLayer(doc, (ScMimeData::clipboardHasScribusData() || (scrapbookPalette->tempHasContents())));
+ refreshDocumentModifiedUi();
}
void ScribusMainWindow::HaveNewDoc()
@@ -2840,15 +2844,21 @@
void ScribusMainWindow::slotDocCh(bool /*reb*/)
{
+ if (!doc->isUndoRedoOngoing() && !doc->isLoading())
+ {
+ // Some UI and plugin changes report slotDocCh() directly rather
+ // than using ScribusDoc::changed(). Observe both paths once.
+ if (sender() != doc)
+ doc->noteSavedStateChange();
+ }
if (!doc->isModified())
doc->setModified(true);
- updateActiveWindowCaption(doc->documentFileName() + "*");
+ refreshDocumentModifiedUi();
if (!doc->masterPageMode())
{
if (!doc->symbolEditMode() && !doc->inlineEditMode())
{
- if (doc->hasName)
- scrActions["fileRevert"]->setEnabled(true);
+ // Revert availability is synchronised by refreshDocumentModifiedUi().
bool multiPages = doc->DocPages.count() > 1;
scrActions["pageDelete"]->setEnabled(multiPages);
scrActions["pageMove"]->setEnabled(multiPages);
@@ -3824,6 +3834,9 @@
doc->setModified(false);
foreach (NotesStyle* NS, doc->m_docNotesStylesList)
doc->updateNotesFramesStyles(NS);
+ if (ret)
+ m_undoManager->markSavedState();
+ refreshDocumentModifiedUi();
#ifdef DEBUG_LOAD_TIMES
times(&tms2);
double ticks = sysconf(_SC_CLK_TCK);
@@ -4123,8 +4136,12 @@
storyEditor->close();
slotFileClose();
QApplication::processEvents();
- loadDoc(fn);
- m_undoManager->clearStack();
+ if (loadDoc(fn))
+ {
+ m_undoManager->clearStack();
+ m_undoManager->markSavedState();
+ refreshDocumentModifiedUi();
+ }
}
}
@@ -4220,9 +4237,9 @@
QApplication::processEvents();
if (ret)
{
- updateActiveWindowCaption(fileName);
m_undoManager->renameStack(fileName);
- scrActions["fileRevert"]->setEnabled(false);
+ m_undoManager->markSavedState();
+ refreshDocumentModifiedUi();
updateRecent(fileName);
}
m_mainWindowStatusLabel->setText("");
@@ -7692,7 +7709,7 @@
layerPalette->setEnabled(true);
if (outlinePalette->isVisible())
outlinePalette->BuildTree(false);
- updateActiveWindowCaption(doc->documentFileName());
+ refreshDocumentModifiedUi();
}
void ScribusMainWindow::editInlineStart(int id)
@@ -7741,7 +7758,7 @@
layerPalette->setEnabled(true);
if (outlinePalette->isVisible())
outlinePalette->BuildTree(false);
- updateActiveWindowCaption(doc->documentFileName());
+ refreshDocumentModifiedUi();
}
void ScribusMainWindow::editMasterPagesStart(const QString& temp)
@@ -8734,6 +8751,31 @@
return;
editMasterPagesEnd();
QApplication::processEvents();
+}
+
+void ScribusMainWindow::syncSavedStateAfterUndo(const QString& stackName)
+{
+ if (!HaveDoc || !doc || doc->documentFileName() != stackName ||
+ !m_undoManager->hasSavedState(stackName))
+ return;
+
+ // UndoStack compares the complete ordered action list. Never infer a
+ // clean state from the number of Undo actions alone.
+ doc->setModified(!m_undoManager->isAtSavedState());
+ refreshDocumentModifiedUi();
+}
+
+void ScribusMainWindow::refreshDocumentModifiedUi()
+{
+ if (!HaveDoc || !doc || !ActWin)
+ return;
+
+ if (!doc->symbolEditMode() && !doc->inlineEditMode())
+ updateActiveWindowCaption(doc->documentFileName() + (doc->isModified() ? "*" : ""));
+
+ scrActions["fileRevert"]->setEnabled(doc->hasName && doc->isModified() &&
+ !doc->isConverted && !doc->masterPageMode() &&
+ !doc->symbolEditMode() && !doc->inlineEditMode());
}
void ScribusMainWindow::updateActiveWindowCaption(const QString &newCaption)
Index: scribus/scribus.h
===================================================================
--- scribus/scribus.h (revision 27881)
+++ scribus/scribus.h (working copy)
@@ -333,6 +333,8 @@
void newActWin(QMdiSubWindow *w);
void closeActiveWindowMasterPageEditor();
void updateActiveWindowCaption(const QString &newCaption);
+ void refreshDocumentModifiedUi();
+ void syncSavedStateAfterUndo(const QString& stackName);
void windowsMenuActivated(int id);
void PutScrap(int scID);
void PutToInline(const QString& buffer);
Index: scribus/scribusdoc.cpp
===================================================================
--- scribus/scribusdoc.cpp (revision 27881)
+++ scribus/scribusdoc.cpp (working copy)
@@ -98,6 +98,7 @@
#include "scribusXml.h"
#include "scribuscore.h"
#include "scribusdoc.h"
+#include <QTimer>
#include "scribusview.h"
#include "selection.h"
#include "serializer.h"
@@ -1840,10 +1841,10 @@
void ScribusDoc::undoRedoDone()
{
- --m_undoRedoOngoing;
m_Selection->delaySignalsOff();
m_docUpdater->endUpdate();
changedPagePreview();
+ --m_undoRedoOngoing;
}
void ScribusDoc::restore(UndoState* state, bool isUndo)
@@ -2570,6 +2571,12 @@
void ScribusDoc::setModified(bool isModified)
{
+ if (!isModified)
+ {
+ // A save, open or successful Undo establishes a fresh clean state.
+ m_savedStateCheckPending = false;
+ ++m_savedStateCheckToken;
+ }
if (m_modified != isModified)
{
m_modified = isModified;
@@ -10532,6 +10539,7 @@
if (m_hasGUI)
{
connect(this, SIGNAL(docChanged()), m_ScMW, SLOT(slotDocCh()));
+ connect(m_undoManager, SIGNAL(transactionClosed()), this, SLOT(finishSavedStateCheck()), Qt::UniqueConnection);
connect(this, SIGNAL(pagePreviewChanged()), m_ScMW, SLOT(slotPreviewCh()));
connect(this, SIGNAL(firstSelectedItemType(int)), m_ScMW, SLOT(HaveNewSel()));
connect(this->m_Selection, SIGNAL(selectionChanged()), m_ScMW, SLOT(HaveNewSel()));
@@ -10547,6 +10555,7 @@
if (m_hasGUI)
{
disconnect(this, SIGNAL(docChanged()), m_ScMW, SLOT(slotDocCh()));
+ disconnect(m_undoManager, SIGNAL(transactionClosed()), this, SLOT(finishSavedStateCheck()));
disconnect(this, SIGNAL(pagePreviewChanged()), m_ScMW, SLOT(slotPreviewCh()));
disconnect(this, SIGNAL(firstSelectedItemType(int)), m_ScMW, SLOT(HaveNewSel()));
disconnect(this->m_Selection, SIGNAL(selectionChanged()), m_ScMW, SLOT(HaveNewSel()));
@@ -13960,6 +13969,7 @@
void ScribusDoc::changed()
{
+ noteSavedStateChange();
setModified(true);
// Do not emit docChanged signal() unnecessarily
// Processing of that signal is slowwwwwww and
@@ -13970,6 +13980,42 @@
return;
}
emit docChanged();
+}
+
+void ScribusDoc::noteSavedStateChange()
+{
+ if (isLoading() || isUndoRedoOngoing() || !m_undoManager->hasSavedState(documentFileName()))
+ return;
+
+ // A change made while Undo recording is disabled cannot be reversed.
+ if (!UndoManager::undoEnabled())
+ {
+ m_undoManager->invalidateSavedState(documentFileName());
+ return;
+ }
+ if (m_savedStateCheckPending)
+ return;
+
+ // Undo actions may be recorded before or after changed(). Coalesce
+ // notifications from one event turn and account for transaction commits.
+ m_savedStateCheckPending = true;
+ const quint64 token = ++m_savedStateCheckToken;
+ QTimer::singleShot(0, this, [this, token]() {
+ if (token == m_savedStateCheckToken)
+ finishSavedStateCheck();
+ });
+}
+
+void ScribusDoc::finishSavedStateCheck()
+{
+ if (!m_savedStateCheckPending || isLoading() || isUndoRedoOngoing())
+ return;
+ if (m_undoManager->isTransactionMode())
+ return; // transactionClosed will retry after the outermost commit/cancel
+
+ m_savedStateCheckPending = false;
+ if (isModified())
+ m_undoManager->noteDocumentChange(documentFileName());
}
void ScribusDoc::changedPagePreview()
Index: scribus/scribusdoc.h
===================================================================
--- scribus/scribusdoc.h (revision 27881)
+++ scribus/scribusdoc.h (working copy)
@@ -1281,6 +1281,8 @@
* certain operations.
*/
void changed();
+ // Called also by UI change notifications which bypass changed().
+ void noteSavedStateChange();
void changedPagePreview();
/*! \brief Get pointer to the current page
\retval Page* current page object */
@@ -1361,6 +1363,8 @@
UndoManager * const m_undoManager;
bool m_loading {false};
bool m_modified {false};
+ bool m_savedStateCheckPending {false};
+ quint64 m_savedStateCheckToken {0};
int m_undoRedoOngoing {0};
int m_ActiveLayer {0};
double m_docUnitRatio;
@@ -1574,6 +1578,7 @@
void deleteBookmark(PageItem *);
public slots:
+ void finishSavedStateCheck();
void selectionChanged();
void itemSelection_ToggleLock();
void itemSelection_ToggleSizeLock();
| ||||
| Patch | Yes | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-10-10 12:16 | buttar | New Issue | |
| 2026-10-10 12:16 | buttar | Tag Attached: #please_test | |
| 2026-10-10 12:16 | buttar | File Added: dss1-saved-state-tracking-v1.10.patch | |
| 2026-10-10 12:16 | buttar | File Added: dss2-saved-state-integration-v1.10.patch | |
| 2026-10-17 20:26 | cbradney | Target Version | => 1.8 Milestone |
| 2026-10-29 17:09 | cbradney | Target Version | 1.8 Milestone => 1.7.5.svn |