[dwrite] Minor, enable the original code assertions

This commit is contained in:
Ebrahim Byagowi 2018-04-28 13:58:55 +04:30 committed by GitHub
parent 9925030f19
commit a57f5a1a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -488,14 +488,14 @@ protected:
mCurrentRun = run;
return;
}
// NS_NOTREACHED ("We should always be able to find the text position in one of our runs");
assert (0); // We should always be able to find the text position in one of our runs
}
void SplitCurrentRun (uint32_t splitPosition)
{
if (!mCurrentRun)
{
//NS_ASSERTION (false, "SplitCurrentRun called without current run.");
assert (0); // SplitCurrentRun called without current run
// Shouldn't be calling this when no current run is set!
return;
}