Don't flag blank->blank predictions.

This commit is contained in:
Keith Winstein
2012-05-05 11:21:01 -04:00
parent 5cff456400
commit 0901cd8431
+4 -6
View File
@@ -41,6 +41,10 @@ void ConditionalOverlayCell::apply( Framebuffer &fb, uint64_t confirmed_epoch, i
return; return;
} }
if ( replacement.is_blank() && fb.get_cell( row, col )->is_blank() ) {
flag = false;
}
if ( unknown ) { if ( unknown ) {
if ( flag && ( col != fb.ds.get_width() - 1 ) ) { if ( flag && ( col != fb.ds.get_width() - 1 ) ) {
fb.get_mutable_cell( row, col )->renditions.underlined = true; fb.get_mutable_cell( row, col )->renditions.underlined = true;
@@ -49,12 +53,6 @@ void ConditionalOverlayCell::apply( Framebuffer &fb, uint64_t confirmed_epoch, i
} }
if ( !(*(fb.get_cell( row, col )) == replacement) ) { if ( !(*(fb.get_cell( row, col )) == replacement) ) {
/*
if ( replacement.is_blank() && fb.get_cell( row, col )->is_blank() ) {
return;
}
*/
*(fb.get_mutable_cell( row, col )) = replacement; *(fb.get_mutable_cell( row, col )) = replacement;
if ( flag ) { if ( flag ) {
fb.get_mutable_cell( row, col )->renditions.underlined = true; fb.get_mutable_cell( row, col )->renditions.underlined = true;