зеркало из https://github.com/mozilla/pjs.git
Bug 571106, sanitize tree range boundaries, r=neil
--HG-- extra : rebase_source : 848e30ac31a4bc96c543ae612074ea4071c0eb88
This commit is contained in:
Родитель
d127c73982
Коммит
f01378d1d2
|
@ -703,7 +703,12 @@ NS_IMETHODIMP nsTreeSelection::SetCurrentColumn(nsITreeColumn* aCurrentColumn)
|
|||
|
||||
#define ADD_NEW_RANGE(macro_range, macro_selection, macro_start, macro_end) \
|
||||
{ \
|
||||
nsTreeRange* macro_new_range = new nsTreeRange(macro_selection, (macro_start), (macro_end)); \
|
||||
PRInt32 start = macro_start; \
|
||||
PRInt32 end = macro_end; \
|
||||
if (start > end) { \
|
||||
end = start; \
|
||||
} \
|
||||
nsTreeRange* macro_new_range = new nsTreeRange(macro_selection, start, end); \
|
||||
if (macro_range) \
|
||||
macro_range->Insert(macro_new_range); \
|
||||
else \
|
||||
|
|
Загрузка…
Ссылка в новой задаче